lib/cistern/model.rb in cistern-2.5.0 vs lib/cistern/model.rb in cistern-2.6.0
- old
+ new
@@ -4,9 +4,10 @@
def self.included(klass)
klass.send(:extend, Cistern::Attributes::ClassMethods)
klass.send(:include, Cistern::Attributes::InstanceMethods)
klass.send(:extend, Cistern::Model::ClassMethods)
+ klass.send(:extend, Cistern::Associations)
end
def self.cistern_model(cistern, klass, name)
cistern.const_get(:Collections).module_eval <<-EOS, __FILE__, __LINE__
def #{name}(attributes={})