lib/ripple/associations/many.rb in ripple-0.7.1 vs lib/ripple/associations/many.rb in ripple-0.8.0.beta

- old
+ new

@@ -31,16 +31,17 @@ def reset super @target = [] end - def << - raise NotImplementedError + def <<(value) + raise NotImplementedError end + alias_method :push, :<< - alias_method :concat, :<< + alias_method :concat, :<< - protected + protected def instantiate_target(instantiator, attrs={}) doc = klass.send(instantiator, attrs) self << doc doc end