diff options
author | Arthur Neves <arthurnn@gmail.com> | 2014-07-24 11:48:24 -0400 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2014-07-24 11:48:24 -0400 |
commit | c17c262cfcae307def3a0657602adccaf7fa91cf (patch) | |
tree | 41d31e87736bce2a3d3a5cbc323f74a2cbf513a6 /activesupport/lib/active_support | |
parent | 5f25435bf4b3c4e6c1dbac92ef9063420d28dc49 (diff) | |
download | rails-c17c262cfcae307def3a0657602adccaf7fa91cf.tar.gz rails-c17c262cfcae307def3a0657602adccaf7fa91cf.tar.bz2 rails-c17c262cfcae307def3a0657602adccaf7fa91cf.zip |
Make HWIA copy the default proc too.
[fixes #16279]
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/hash_with_indifferent_access.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/hash_with_indifferent_access.rb b/activesupport/lib/active_support/hash_with_indifferent_access.rb index e1eb81b8bc..dc76a77a6c 100644 --- a/activesupport/lib/active_support/hash_with_indifferent_access.rb +++ b/activesupport/lib/active_support/hash_with_indifferent_access.rb @@ -75,6 +75,7 @@ module ActiveSupport hash = hash.to_hash new(hash).tap do |new_hash| new_hash.default = hash.default + new_hash.default_proc = hash.default_proc if hash.default_proc end end |