lib/ecoportal/api/common/content/array_model.rb in ecoportal-api-v2-1.1.6 vs lib/ecoportal/api/common/content/array_model.rb in ecoportal-api-v2-1.1.7
- old
+ new
@@ -32,10 +32,10 @@
end
end
inheritable_class_vars :order_matteres, :uniq
- def initialize(doc = [], parent: self, key: nil, read_only: false)
+ def initialize(doc = [], parent: self, key: nil, read_only: self.class.read_only?)
super(doc, parent: parent, key: key, read_only: read_only)
end
def order_matters?; self.class.order_matters; end
def uniq?; self.class.uniq; end