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:
parent
906e79396b
commit
e3ecc3375f
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue