1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

provide more useful feedback on missing translations for validation error messages

This commit is contained in:
Sven Fuchs 2008-08-13 13:52:07 +02:00
parent 906e79396b
commit e3ecc3375f

View file

@ -70,7 +70,7 @@ module ActiveRecord
msgs << options[:default] if options[:default] msgs << options[:default] if options[:default]
msgs << key 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 end
# Returns true if the specified +attribute+ has errors associated with it. # Returns true if the specified +attribute+ has errors associated with it.