Skip to content
This repository
Browse code

change to destructive `deep_symbolize_keys` after df24b87 which allow…

…s to do so. This helps to avoid extra hash object creation, by symbolizing inplace
  • Loading branch information...
commit 50a51e956be96a95771b9de06a9e43d7509f8976 1 parent dd03f10
Vipul A M vipulnsward authored
2  activesupport/lib/active_support/hash_with_indifferent_access.rb
@@ -224,7 +224,7 @@ def deep_stringify_keys; dup end
224 224 undef :symbolize_keys!
225 225 undef :deep_symbolize_keys!
226 226 def symbolize_keys; to_hash.symbolize_keys! end
227   - def deep_symbolize_keys; to_hash.deep_symbolize_keys end
  227 + def deep_symbolize_keys; to_hash.deep_symbolize_keys! end
228 228 def to_options!; self end
229 229
230 230 # Convert to a regular hash with string keys.

0 comments on commit 50a51e9

Please sign in to comment.
Something went wrong with that request. Please try again.