本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
adrianshort
/
armchairauditor
镜像来自
https://github.com/adrianshort/armchairauditor.git
關注
1
收藏
0
複製
0
程式碼
問題
0
版本發佈
0
Wiki
活動
瀏覽代碼
Moved back to belongs_to rather than has 1 association
pull/3/head
Adrian Short
14 年之前
父節點
188b1e4a02
當前提交
bb6a49349f
共有
2 個檔案被更改
,包括
1 行新增
和
6 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
lib/models.rb
+0
-5
views/payment.haml
+ 1
- 1
lib/models.rb
查看文件
@@ -19,7 +19,7 @@ class Payment
belongs_to :service
belongs_to :supplier
has 1,
:directorate, { :through => :service }
belongs_to
:directorate, { :through => :service }
def url
SITE_URL + "payments/" + @id.to_s
+ 0
- 5
views/payment.haml
查看文件
@@ -23,9 +23,4 @@
%tr
%td Amount £
%td= sprintf("%0.2f", @payment.amount)
%tr
%td Transaction Number
%td= @payment.trans_no.nil? ? "unknown" : @payment.trans_no
Write
Preview
Loading…
取消
儲存