From fa0ab968a8ea8a35694973a4ea62feba466f448d Mon Sep 17 00:00:00 2001 From: Sam Lown Date: Thu, 17 Jun 2010 02:43:17 +0200 Subject: [PATCH] Adding associations to casted model --- lib/couchrest/casted_model.rb | 1 + spec/couchrest/assocations_spec.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/couchrest/casted_model.rb b/lib/couchrest/casted_model.rb index a4ecdbf..8f0ed16 100644 --- a/lib/couchrest/casted_model.rb +++ b/lib/couchrest/casted_model.rb @@ -4,6 +4,7 @@ module CouchRest def self.included(base) base.send(:include, ::CouchRest::Mixins::Callbacks) base.send(:include, ::CouchRest::Mixins::Properties) + base.send(:include, ::CouchRest::Mixins::Assocations) base.send(:attr_accessor, :casted_by) end diff --git a/spec/couchrest/assocations_spec.rb b/spec/couchrest/assocations_spec.rb index 7382ae4..88ca2f6 100644 --- a/spec/couchrest/assocations_spec.rb +++ b/spec/couchrest/assocations_spec.rb @@ -77,3 +77,4 @@ describe "Assocations" do end end +