Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make word separator in AR validation error messages configurable.

[#1294 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
commit c3b87dd4c99ba47d316bd03f99b5e23af1fe0ed8 1 parent 273c770
@amatsuda amatsuda authored jeremy committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/validations.rb
View
2  activerecord/lib/active_record/validations.rb
@@ -205,7 +205,7 @@ def full_messages(options = {})
else
#key = :"activerecord.att.#{@base.class.name.underscore.to_sym}.#{attr}"
attr_name = @base.class.human_attribute_name(attr)
- full_messages << attr_name + ' ' + message
+ full_messages << attr_name + I18n.t('activerecord.errors.format.separator', :default => ' ') + message
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.