aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorSven Fuchs <svenfuchs@artweb-design.de>2008-08-13 13:52:07 +0200
committerSven Fuchs <svenfuchs@artweb-design.de>2008-08-13 13:52:07 +0200
commite3ecc3375fef4faa807638ff9e9cf309094272bd (patch)
tree8eecef160e2b15eee659d0afd70b953c62171dc5 /activerecord
parent906e79396badfe9fb6b7f0457e835e5f1a9b09b2 (diff)
downloadrails-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')
-rw-r--r--activerecord/lib/active_record/validations.rb2
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.