Skip to content

Commit

Permalink
marking self in Hash#symbolize_keys!
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Rodriguez committed May 13, 2012
1 parent 92dbdb2 commit 16301cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/core_ext/hash/keys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def symbolize_keys
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)
Expand Down

0 comments on commit 16301cc

Please sign in to comment.