lib/ripple/associations/many_embedded_proxy.rb in ripple-1.0.0.beta vs lib/ripple/associations/many_embedded_proxy.rb in ripple-1.0.0.beta2

- old
+ new

@@ -8,12 +8,13 @@ include Many include Embedded def <<(docs) load_target - @reflection.verify_type!(Array(docs), @owner) + docs = Array.wrap(docs) + @reflection.verify_type!(docs, @owner) assign_references(docs) - @target += Array(docs) + @target += docs self end def replace(docs) @reflection.verify_type!(docs, @owner)