Skip to content

Commit

Permalink
Make word separator in AR validation error messages configurable.
Browse files Browse the repository at this point in the history
[#1294 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information
amatsuda authored and jeremy committed Dec 8, 2008
1 parent 273c770 commit c3b87dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/validations.rb
Expand Up @@ -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
Expand Down

0 comments on commit c3b87dd

Please sign in to comment.