Skip to content
This repository
Browse code

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
Akira Matsuda authored October 30, 2008 jeremy committed December 08, 2008
2  activerecord/lib/active_record/validations.rb
@@ -205,7 +205,7 @@ def full_messages(options = {})
205 205
           else
206 206
             #key = :"activerecord.att.#{@base.class.name.underscore.to_sym}.#{attr}" 
207 207
             attr_name = @base.class.human_attribute_name(attr)
208  
-            full_messages << attr_name + ' ' + message
  208
+            full_messages << attr_name + I18n.t('activerecord.errors.format.separator', :default => ' ') + message
209 209
           end
210 210
         end
211 211
       end

0 notes on commit c3b87dd

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