Skip to content
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...
1 parent 273c770 commit c3b87dd4c99ba47d316bd03f99b5e23af1fe0ed8 @amatsuda amatsuda committed with jeremy
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

0 comments on commit c3b87dd

Please sign in to comment.
Something went wrong with that request. Please try again.