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 19:47:27 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-13 19:47:27 -0500
commitbbd37753bf59a11a9e9b38a3ac7a94ec2906e188 (patch)
treee3dd104debd82878833481f3031ef4d90dcdc5af /activesupport/lib/active_support/core_ext/hash/keys.rb
parentc81f11d160b2d16cd89a4ed197d587075eec51ce (diff)
downloadrails-bbd37753bf59a11a9e9b38a3ac7a94ec2906e188.tar.gz
rails-bbd37753bf59a11a9e9b38a3ac7a94ec2906e188.tar.bz2
rails-bbd37753bf59a11a9e9b38a3ac7a94ec2906e188.zip
Fixing Hash#stringify_keys docs
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 e0aa352818..be4d611ce7 100644
--- a/activesupport/lib/active_support/core_ext/hash/keys.rb
+++ b/activesupport/lib/active_support/core_ext/hash/keys.rb
@@ -1,7 +1,7 @@
class Hash
# Return a new hash with all keys converted to strings.
#
- # { name: 'Rob', years: '28' }.stringify_keys
+ # { :name => 'Rob', :years => '28' }.stringify_keys
# #=> { "name" => "Rob", "years" => "28" }
def stringify_keys
result = {}