diff options
author | Matthew Draper <matthew@trebex.net> | 2017-02-25 10:53:03 +1030 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2017-02-25 10:53:03 +1030 |
commit | 9099cf064f66ae4e6414736ad513399c86100902 (patch) | |
tree | 6bf373e47c1f4abb4b4d745748734cb7f7c69b68 /activerecord | |
parent | feea081199f1398e7fa97bf22eb6081ecd2d6174 (diff) | |
parent | ac57a3ee0e9d484f3d665f42933fcda864546349 (diff) | |
download | rails-9099cf064f66ae4e6414736ad513399c86100902.tar.gz rails-9099cf064f66ae4e6414736ad513399c86100902.tar.bz2 rails-9099cf064f66ae4e6414736ad513399c86100902.zip |
Merge pull request #28157 from robin850/hwia-soft-deprecation
Soft-deprecate the `HashWithIndifferentAccess` constant
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/dirty.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/dirty.rb b/activerecord/lib/active_record/attribute_methods/dirty.rb index 31c1e687dc..6aa414ba6b 100644 --- a/activerecord/lib/active_record/attribute_methods/dirty.rb +++ b/activerecord/lib/active_record/attribute_methods/dirty.rb @@ -50,7 +50,7 @@ module ActiveRecord super.tap do @previous_mutation_tracker = nil clear_mutation_trackers - @changed_attributes = HashWithIndifferentAccess.new + @changed_attributes = ActiveSupport::HashWithIndifferentAccess.new end end @@ -70,13 +70,13 @@ module ActiveRecord def changes_applied @previous_mutation_tracker = mutation_tracker - @changed_attributes = HashWithIndifferentAccess.new + @changed_attributes = ActiveSupport::HashWithIndifferentAccess.new clear_mutation_trackers end def clear_changes_information @previous_mutation_tracker = nil - @changed_attributes = HashWithIndifferentAccess.new + @changed_attributes = ActiveSupport::HashWithIndifferentAccess.new forget_attribute_assignments clear_mutation_trackers end |