lib/action_controller/metal/params_wrapper.rb in actionpack-5.1.0.rc1 vs lib/action_controller/metal/params_wrapper.rb in actionpack-5.1.0.rc2
- old
+ new
@@ -103,10 +103,14 @@
@include_set = true
unless super || exclude
if m.respond_to?(:attribute_names) && m.attribute_names.any?
- self.include = m.attribute_names
+ if m.respond_to?(:stored_attributes) && !m.stored_attributes.empty?
+ self.include = m.attribute_names + m.stored_attributes.values.flatten.map(&:to_s)
+ else
+ self.include = m.attribute_names
+ end
end
end
end
end