lib/eco/language/models/collection.rb in eco-helpers-0.9.2 vs lib/eco/language/models/collection.rb in eco-helpers-0.9.3

- old
+ new

@@ -48,9 +48,10 @@ def newFrom(data) self.class.new(data, klass: @klass, factory: @factory) end def merge(data) + data = data.to_a unless data.is_a?(Array) newFrom to_a + data end def to_c Collection.new(self, klass: @klass, factory: @factory)