diff options
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/attribute_assignment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_assignment.rb b/activerecord/lib/active_record/attribute_assignment.rb index 6f6fc13d16..a54c103476 100644 --- a/activerecord/lib/active_record/attribute_assignment.rb +++ b/activerecord/lib/active_record/attribute_assignment.rb @@ -106,7 +106,7 @@ module ActiveRecord # assign any deferred nested attributes after the base attributes have been set nested_parameter_attributes.each { |k,v| _assign_attribute(k, v) } - assign_multiparameter_attributes(multi_parameter_attributes) + assign_multiparameter_attributes(multi_parameter_attributes) unless multi_parameter_attributes.empty? ensure @mass_assignment_options = previous_options end |