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 +