使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
adrianshort
/
armchairauditor
镜像自地址
https://github.com/adrianshort/armchairauditor.git
关注
1
点赞
0
派生
0
代码
工单
0
版本发布
0
百科
动态
浏览代码
Restored directorate/payments association
pull/3/head
Adrian Short
14 年前
父节点
9217da659b
当前提交
0041f8ab72
共有
2 个文件被更改
,包括
6 次插入
和
6 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+1
-0
lib/models.rb
+5
-6
views/payment.haml
+ 1
- 0
lib/models.rb
查看文件
@@ -38,6 +38,7 @@ class Directorate
has n, :services, :order => ['name']
has n, :suppliers, { :through => :services, :order => ['name'] }
has n, :payments, { :through => :services }
before :save, :slugify
+ 5
- 6
views/payment.haml
查看文件
@@ -5,12 +5,11 @@
%tr
%td Date
%td= @payment.d.strftime("%d %b %Y")
-#
%tr
%td Directorate
%td
%a{ :href => "/directorates/#{@payment.directorate.slug}" }
= @payment.directorate.name
%tr
%td Directorate
%td
%a{ :href => "/directorates/#{@payment.directorate.slug}" }
= @payment.directorate.name
%tr
%td Service
%td
撰写
预览
正在加载...
取消
保存