Procházet zdrojové kódy

Removed directorate/payment association

pull/3/head
Adrian Short před 14 roky
rodič
revize
6de99d6fb2
2 změnil soubory, kde provedl 7 přidání a 6 odebrání
  1. +1
    -1
      lib/models.rb
  2. +6
    -5
      views/payment.haml

+ 1
- 1
lib/models.rb Zobrazit soubor

@@ -38,7 +38,7 @@ class Directorate
has n, :services, :order => ['name']
has n, :suppliers, { :through => :services, :order => ['name'] }
has n, :payments, { :through => :services }
# has n, :payments, { :through => :services }

before :save, :slugify



+ 6
- 5
views/payment.haml Zobrazit soubor

@@ -5,11 +5,12 @@
%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


Načítá se…
Zrušit
Uložit