diff --git a/.gems b/.gems index 46b3c8d..b8f1f13 100644 --- a/.gems +++ b/.gems @@ -1,2 +1,2 @@ sbfaulkner-sinatra-helpers -s http://gems.github.com - +dm-core --version '>= 1.0.0' diff --git a/lib/models.rb b/lib/models.rb index 1f9baa7..0fee30c 100644 --- a/lib/models.rb +++ b/lib/models.rb @@ -19,7 +19,7 @@ class Payment belongs_to :service belongs_to :supplier - belongs_to :directorate, { :through => :service } + has 1, :directorate, { :through => :service } def url SITE_URL + "payments/" + @id.to_s