aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/deprecated_error_methods.rb
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2010-06-23 14:41:28 +0200
committerJosé Valim <jose.valim@gmail.com>2010-06-23 14:45:55 +0200
commite8c064bbe0fb5e07c7ceaa45d0cafa3c4ef01ab0 (patch)
treee1a4ab2fc6d37259721e69878c9f0123c1cd2b87 /activemodel/lib/active_model/deprecated_error_methods.rb
parent7008911222826eef07a338bf4cab27b83fe90ce1 (diff)
downloadrails-e8c064bbe0fb5e07c7ceaa45d0cafa3c4ef01ab0.tar.gz
rails-e8c064bbe0fb5e07c7ceaa45d0cafa3c4ef01ab0.tar.bz2
rails-e8c064bbe0fb5e07c7ceaa45d0cafa3c4ef01ab0.zip
Regression with how base errors messages are added to a model. Works correctly for both string error messages and symbol translated messages.
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activemodel/lib/active_model/deprecated_error_methods.rb')
-rw-r--r--activemodel/lib/active_model/deprecated_error_methods.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/deprecated_error_methods.rb b/activemodel/lib/active_model/deprecated_error_methods.rb
index dd8050c549..adc50773d9 100644
--- a/activemodel/lib/active_model/deprecated_error_methods.rb
+++ b/activemodel/lib/active_model/deprecated_error_methods.rb
@@ -16,7 +16,7 @@ module ActiveModel
end
def add_to_base(msg)
- ActiveSupport::Deprecation.warn "Errors#add_to_base(msg) has been deprecated, use Errors#[:base] << msg instead"
+ ActiveSupport::Deprecation.warn "Errors#add_to_base(msg) has been deprecated, use Errors#add(:base, msg) instead"
self[:base] << msg
end