mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
provide more useful feedback on missing translations for validation error messages
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user