This website works better with JavaScript.
Home
Explore
Help
Sign In
adrianshort
/
armchairauditor
mirror of
https://github.com/adrianshort/armchairauditor.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Moved back to belongs_to rather than has 1 association
pull/3/head
Adrian Short
14 years ago
parent
188b1e4a02
commit
bb6a49349f
2 changed files
with
1 additions
and
6 deletions
Split View
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
View File
@@ -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
View File
@@ -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…
Cancel
Save