diff options
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/dirty.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/dirty.rb b/activerecord/lib/active_record/attribute_methods/dirty.rb index 24f0ccb239..84b942d559 100644 --- a/activerecord/lib/active_record/attribute_methods/dirty.rb +++ b/activerecord/lib/active_record/attribute_methods/dirty.rb @@ -52,11 +52,13 @@ module ActiveRecord def changes_applied @previous_mutation_tracker = @mutation_tracker + @changed_attributes = HashWithIndifferentAccess.new store_original_attributes end def clear_changes_information @previous_mutation_tracker = nil + @changed_attributes = HashWithIndifferentAccess.new store_original_attributes end |