9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/rails/surrender/render/configuration/inclusion_mapper_logic.rb', line 9
def expanding_elements
list = resource_class_surrender_attributes_that_expand +
resource_class_surrender_expands +
resource_class_subclass_surrender_attributes_that_expand +
resource_class_subclass_surrender_expands +
user_included_joins_required +
ctrl_included_joins_required
.flatten.uniq
list
.map { |e| element_from(e) }
.reject do |element|
element.klass.in?(history) ||
element.name.in?(local_user_excludes) ||
(element.name.in?(local_ctrl_excludes) && !element.name.in?(local_user_includes))
end
end
|