|
@@ -19,7 +19,7 @@ class Payment |
|
|
|
|
|
|
|
|
belongs_to :service |
|
|
belongs_to :service |
|
|
belongs_to :supplier |
|
|
belongs_to :supplier |
|
|
belongs_to :directorate, { :through => :service } |
|
|
|
|
|
|
|
|
has 1, :directorate, { :through => :service } |
|
|
|
|
|
|
|
|
def url |
|
|
def url |
|
|
SITE_URL + "payments/" + @id.to_s |
|
|
SITE_URL + "payments/" + @id.to_s |
|
|