From cd56e1dab2a7ac5c5592a2946bb9dc2b36c4730a Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Wed, 9 Jun 2010 00:25:18 +0100 Subject: [PATCH] Changed datamapper gem version --- .gems | 2 +- lib/models.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gems b/.gems index 9b4d24d..faf1443 100644 --- a/.gems +++ b/.gems @@ -1,2 +1,2 @@ sbfaulkner-sinatra-helpers -s http://gems.github.com -datamapper --version '>= 1.0.0' +datamapper --version '0.10.1' diff --git a/lib/models.rb b/lib/models.rb index 0fee30c..1913823 100644 --- a/lib/models.rb +++ b/lib/models.rb @@ -1,4 +1,5 @@ require 'rubygems' +gem "datamapper", "0.9.11" require 'dm-core' require 'dm-validations' require 'dm-timestamps' @@ -79,6 +80,7 @@ class Supplier has n, :payments, :order => ['d'] has n, :services, { :through => :payments, :order => ['name'] } + has n, :directorates, { :through => :payments } before :save, :slugify