Permalink
Browse files

Merge pull request #10627 from vipulnsward/destructive_symbolize

Change to destructive `deep_symbolize_keys` to avoid a new hash creation.
  • Loading branch information...
2 parents 51a5e90 + 50a51e9 commit a1fedfa839d0cd8b40c61b1a00bd0ac848a838af @carlosantoniodasilva carlosantoniodasilva committed Jun 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/hash_with_indifferent_access.rb
@@ -224,7 +224,7 @@ def deep_stringify_keys; dup end
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)

0 comments on commit a1fedfa

Please sign in to comment.