diff options
author | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-08-13 13:52:07 +0200 |
---|---|---|
committer | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-08-13 13:52:07 +0200 |
commit | e3ecc3375fef4faa807638ff9e9cf309094272bd (patch) | |
tree | 8eecef160e2b15eee659d0afd70b953c62171dc5 /activerecord/lib | |
parent | 906e79396badfe9fb6b7f0457e835e5f1a9b09b2 (diff) | |
download | rails-e3ecc3375fef4faa807638ff9e9cf309094272bd.tar.gz rails-e3ecc3375fef4faa807638ff9e9cf309094272bd.tar.bz2 rails-e3ecc3375fef4faa807638ff9e9cf309094272bd.zip |
provide more useful feedback on missing translations for validation error messages
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/validations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index 0de430567c..85b8e6232b 100644 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -70,7 +70,7 @@ module ActiveRecord msgs << options[:default] if options[:default] msgs << key - I18n.t nil, options.merge(:default => msgs, :scope => [:active_record, :error_messages]) + I18n.t msgs.shift, options.merge(:default => msgs, :scope => [:active_record, :error_messages]) end # Returns true if the specified +attribute+ has errors associated with it. |