Permalink
Browse files

Remove redundant #to_sym

  • Loading branch information...
1 parent 5313eab commit 6174d3ba244c448bf31b4a84aa45ac651bb9435c @pkondzior pkondzior committed Jan 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/errors.rb
@@ -123,7 +123,7 @@ def [](attribute)
# p.errors[:name] = "must be set"
# p.errors[:name] # => ['must be set']
def []=(attribute, error)
- self[attribute.to_sym] << error
+ self[attribute] << error
end
# Iterates through each error key, value pair in the error messages hash.

0 comments on commit 6174d3b

Please sign in to comment.