aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2017-02-20 09:36:40 +0100
committerGitHub <noreply@github.com>2017-02-20 09:36:40 +0100
commit71da39097b67114329be6d8db7fe6911124531af (patch)
treef2caf42ba1e673f21c498ab15a005cba015cf2fc /activerecord
parent41c33bd4b2ec3f4a482e6030b6fda15091d81e4a (diff)
parente532531939a610c3a1ba4594d325b10a0c9b4546 (diff)
downloadrails-71da39097b67114329be6d8db7fe6911124531af.tar.gz
rails-71da39097b67114329be6d8db7fe6911124531af.tar.bz2
rails-71da39097b67114329be6d8db7fe6911124531af.zip
Merge pull request #27925 from robin850/hwia-removal
Remove the top-level `HashWithIndifferentAccess` contant
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/attribute_methods/dirty.rb6
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