diff options
author | Paweł Kondzior <pawel@kondzior.com> | 2012-01-16 23:24:14 -0800 |
---|---|---|
committer | Paweł Kondzior <pawel@kondzior.com> | 2012-01-16 23:24:14 -0800 |
commit | 6174d3ba244c448bf31b4a84aa45ac651bb9435c (patch) | |
tree | b454a0bf82da1f74c44dadbed1f2acb18889dcaf /activemodel/lib | |
parent | 5313eab6954aff1235aca9126d662aac5b6c300d (diff) | |
download | rails-6174d3ba244c448bf31b4a84aa45ac651bb9435c.tar.gz rails-6174d3ba244c448bf31b4a84aa45ac651bb9435c.tar.bz2 rails-6174d3ba244c448bf31b4a84aa45ac651bb9435c.zip |
Remove redundant #to_sym
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/errors.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb index 4a0ad618bc..5cd8f77f0d 100644 --- a/activemodel/lib/active_model/errors.rb +++ b/activemodel/lib/active_model/errors.rb @@ -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. |