lib/ecoportal/api/common/content/array_model.rb in ecoportal-api-v2-0.8.12 vs lib/ecoportal/api/common/content/array_model.rb in ecoportal-api-v2-0.8.13
- old
+ new
@@ -31,10 +31,10 @@
(a.order_matters? == b.order_matters?) && (a.uniq? == b.uniq?)
end
end
- def initialize(doc = {}, parent: self, key: nil)
+ def initialize(doc = [], parent: self, key: nil)
super(doc, parent: parent, key: key)
end
def order_matters?; self.class.order_matters; end
def uniq?; self.class.uniq; end