diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-05-15 10:34:41 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-05-15 10:34:41 +0530 |
commit | 50a51e956be96a95771b9de06a9e43d7509f8976 (patch) | |
tree | 5d1e6e3aea66344c429aea21252b83eb9b17d509 /activesupport/lib/active_support | |
parent | dd03f10d5258dab75da6b7ec493e6558b4ed2bac (diff) | |
download | rails-50a51e956be96a95771b9de06a9e43d7509f8976.tar.gz rails-50a51e956be96a95771b9de06a9e43d7509f8976.tar.bz2 rails-50a51e956be96a95771b9de06a9e43d7509f8976.zip |
change to destructive `deep_symbolize_keys` after https://github.com/rails/rails/commit/df24b8790f22384a068fece7042f04ffd2fcb33e which allows to do so. This helps to avoid extra hash object creation, by symbolizing inplace
Diffstat (limited to 'activesupport/lib/active_support')
-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 9a9ed02bd9..788e8cdbdb 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 # Convert to a regular hash with string keys. |