public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Make word separator in AR validation error messages configurable.

[#1294 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
amatsuda (author)
Thu Oct 30 01:43:08 -0700 2008
jeremy (committer)
Mon Dec 08 15:55:02 -0800 2008
commit  c3b87dd4c99ba47d316bd03f99b5e23af1fe0ed8
tree    fe1d9ab25b7f4dd5f994a47099e2e82ef85f9f48
parent  273c770011ab43d4b523caacb808bce070922d77
...
205
206
207
208
 
209
210
211
...
205
206
207
 
208
209
210
211
0
@@ -205,7 +205,7 @@ module ActiveRecord
0
           else
0
             #key = :"activerecord.att.#{@base.class.name.underscore.to_sym}.#{attr}" 
0
             attr_name = @base.class.human_attribute_name(attr)
0
-            full_messages << attr_name + ' ' + message
0
+            full_messages << attr_name + I18n.t('activerecord.errors.format.separator', :default => ' ') + message
0
           end
0
         end
0
       end

Comments