Permalink
Browse files

Fixing Hash#stringify_keys docs

  • Loading branch information...
1 parent c81f11d commit bbd37753bf59a11a9e9b38a3ac7a94ec2906e188 Francesco Rodriguez committed May 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 = {}

0 comments on commit bbd3775

Please sign in to comment.