aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorPaweł Kondzior <pawel@kondzior.com>2012-01-16 23:24:14 -0800
committerPaweł Kondzior <pawel@kondzior.com>2012-01-16 23:24:14 -0800
commit6174d3ba244c448bf31b4a84aa45ac651bb9435c (patch)
treeb454a0bf82da1f74c44dadbed1f2acb18889dcaf /activemodel/lib
parent5313eab6954aff1235aca9126d662aac5b6c300d (diff)
downloadrails-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.rb2
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.