diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-05-13 12:52:54 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-05-13 12:52:54 -0500 |
commit | 16301cce760ad98c6dc07c53f67c990fd5d684b4 (patch) | |
tree | ad44f6bdb561d319d384000b17f3f78660e2ce84 /activesupport/lib | |
parent | 92dbdb2340839f5d21b467eb68675f597fa3a588 (diff) | |
download | rails-16301cce760ad98c6dc07c53f67c990fd5d684b4.tar.gz rails-16301cce760ad98c6dc07c53f67c990fd5d684b4.tar.bz2 rails-16301cce760ad98c6dc07c53f67c990fd5d684b4.zip |
marking self in Hash#symbolize_keys!
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/hash/keys.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/keys.rb b/activesupport/lib/active_support/core_ext/hash/keys.rb index 81ee71d5fb..e0aa352818 100644 --- a/activesupport/lib/active_support/core_ext/hash/keys.rb +++ b/activesupport/lib/active_support/core_ext/hash/keys.rb @@ -35,7 +35,7 @@ class Hash alias_method :to_options, :symbolize_keys # Destructively convert all keys to symbols, as long as they respond - # to +to_sym+. Same as +symbolize_keys+, but modifies self. + # to +to_sym+. Same as +symbolize_keys+, but modifies +self+. def symbolize_keys! keys.each do |key| self[(key.to_sym rescue key)] = delete(key) |