lib/ripple/associations/many_linked_proxy.rb in ripple-1.0.0.beta vs lib/ripple/associations/many_linked_proxy.rb in ripple-1.0.0.beta2
- old
+ new
@@ -13,10 +13,10 @@
keys.size
end
def <<(value)
if loaded?
- new_target = @target.concat(Array(value))
+ new_target = @target.concat(Array.wrap(value))
replace new_target
else
@reflection.verify_type!([value], @owner)
@owner.robject.links << value.to_link(@reflection.link_tag)
appended_documents << value