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:
parent
5313eab695
commit
6174d3ba24
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue