lib/ecoportal/api/common/content/double_model.rb in ecoportal-api-v2-0.8.32 vs lib/ecoportal/api/common/content/double_model.rb in ecoportal-api-v2-0.8.33

- old
+ new

@@ -196,10 +196,10 @@ # @param enum_class [Class, String] the class of the collection that will hold the individual elements def embeds_many(method, key: method, order_matters: false, order_key: nil, klass: nil, enum_class: nil) if enum_class eclass = enum_class elsif klass - eclass = new_class(method, inherits: Common::Content::CollectionModel) do |dim_class| + eclass = new_class("#{method}::#{klass}", inherits: Common::Content::CollectionModel) do |dim_class| dim_class.klass = klass dim_class.order_matters = order_matters dim_class.order_key = order_key end else