aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/hash/keys.rb
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-13 12:52:54 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-13 12:52:54 -0500
commit16301cce760ad98c6dc07c53f67c990fd5d684b4 (patch)
treead44f6bdb561d319d384000b17f3f78660e2ce84 /activesupport/lib/active_support/core_ext/hash/keys.rb
parent92dbdb2340839f5d21b467eb68675f597fa3a588 (diff)
downloadrails-16301cce760ad98c6dc07c53f67c990fd5d684b4.tar.gz
rails-16301cce760ad98c6dc07c53f67c990fd5d684b4.tar.bz2
rails-16301cce760ad98c6dc07c53f67c990fd5d684b4.zip
marking self in Hash#symbolize_keys!
Diffstat (limited to 'activesupport/lib/active_support/core_ext/hash/keys.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/hash/keys.rb2
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)