aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2015-10-29 09:54:55 -0600
committerSean Griffin <sean@seantheprogrammer.com>2015-10-29 09:54:55 -0600
commitddb886ef1338e0e4fa84d6d8ba55161da34d91aa (patch)
tree7978a76a0c0db50f220402e05e9f799354068366 /activesupport/lib/active_support/core_ext/hash/indifferent_access.rb
parent90dbfdcba2110eb40f5c0c3a1d4c1d6ed46f5ab5 (diff)
parent6e574e8a11635ec4e579e5b247f6492b9bdc9279 (diff)
downloadrails-ddb886ef1338e0e4fa84d6d8ba55161da34d91aa.tar.gz
rails-ddb886ef1338e0e4fa84d6d8ba55161da34d91aa.tar.bz2
rails-ddb886ef1338e0e4fa84d6d8ba55161da34d91aa.zip
Merge pull request #16357 from gchan/hwia-respects-to-hash-default
`HashWithIndifferentAccess.new` respects the default value or proc on objects that respond to `#to_hash`
Diffstat (limited to 'activesupport/lib/active_support/core_ext/hash/indifferent_access.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/hash/indifferent_access.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb b/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb
index 28cb3e2a3b..6df7b4121b 100644
--- a/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb
+++ b/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb
@@ -6,7 +6,7 @@ class Hash
#
# { a: 1 }.with_indifferent_access['a'] # => 1
def with_indifferent_access
- ActiveSupport::HashWithIndifferentAccess.new_from_hash_copying_default(self)
+ ActiveSupport::HashWithIndifferentAccess.new(self)
end
# Called when object is nested under an object that receives