diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-06-25 17:38:43 -0700 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-06-25 17:38:43 -0700 |
commit | a1fedfa839d0cd8b40c61b1a00bd0ac848a838af (patch) | |
tree | a3ddc1c8c28719e6e85f40d9275551e9ad65cd0b | |
parent | 51a5e906581351484489088d16ae5870d156c1d5 (diff) | |
parent | 50a51e956be96a95771b9de06a9e43d7509f8976 (diff) | |
download | rails-a1fedfa839d0cd8b40c61b1a00bd0ac848a838af.tar.gz rails-a1fedfa839d0cd8b40c61b1a00bd0ac848a838af.tar.bz2 rails-a1fedfa839d0cd8b40c61b1a00bd0ac848a838af.zip |
Merge pull request #10627 from vipulnsward/destructive_symbolize
Change to destructive `deep_symbolize_keys` to avoid a new hash creation.
-rw-r--r-- | activesupport/lib/active_support/hash_with_indifferent_access.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/hash_with_indifferent_access.rb b/activesupport/lib/active_support/hash_with_indifferent_access.rb index 56213de50e..95e03ba95c 100644 --- a/activesupport/lib/active_support/hash_with_indifferent_access.rb +++ b/activesupport/lib/active_support/hash_with_indifferent_access.rb @@ -224,7 +224,7 @@ module ActiveSupport undef :symbolize_keys! undef :deep_symbolize_keys! def symbolize_keys; to_hash.symbolize_keys! end - def deep_symbolize_keys; to_hash.deep_symbolize_keys end + def deep_symbolize_keys; to_hash.deep_symbolize_keys! end def to_options!; self end def select(*args, &block) |