Denna sida fungerar bättre med Javascript igång.
Startsida
Utforska
Hjälp
Logga in
adrianshort
/
armchairauditor
spegling av
https://github.com/adrianshort/armchairauditor.git
Bevaka
1
Stjärnmärk
0
Förgrening
0
Kod
Ärenden
0
Släpp
0
Wiki
Aktiviteter
Bläddra i källkod
Restored directorate/payments association
pull/3/head
Adrian Short
14 år sedan
förälder
9217da659b
incheckning
0041f8ab72
2 ändrade filer
med
6 tillägg
och
6 borttagningar
Delad Vy
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
lib/models.rb
+5
-6
views/payment.haml
+ 1
- 0
lib/models.rb
Visa fil
@@ -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
Visa fil
@@ -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
Skriv
Förhandsgranska
Laddar…
Avbryt
Spara