hardwire default group to every attribute_group

pull/6251/head
Jens Ulferts 7 years ago
parent 9e4f5053bc
commit 5e7f1f8df9
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 6
      app/models/type/attribute_groups.rb

@ -95,7 +95,9 @@ module Type::AttributeGroups
# Read the serialized attribute groups, if customized.
# Otherwise, return +default_attribute_groups+
def attribute_groups
custom_attribute_groups || default_attribute_groups
groups = custom_attribute_groups || default_attribute_groups
groups + [[:children, [default_children_query]]]
end
##
@ -110,8 +112,6 @@ module Type::AttributeGroups
ordered << [groupkey, members.sort] if members.present?
end
ordered << [:children, [default_children_query]]
ordered
end

Loading…
Cancel
Save