1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove redundant #to_sym

This commit is contained in:
Paweł Kondzior 2012-01-16 23:24:14 -08:00
parent 5313eab695
commit 6174d3ba24

View file

@ -123,7 +123,7 @@ module ActiveModel
# 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.