From c3b87dd4c99ba47d316bd03f99b5e23af1fe0ed8 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Thu, 30 Oct 2008 17:43:08 +0900 Subject: Make word separator in AR validation error messages configurable. [#1294 state:committed] Signed-off-by: Jeremy Kemper --- activerecord/lib/active_record/validations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index dae00aa7db..4b275ddd70 100644 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -205,7 +205,7 @@ module ActiveRecord 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 -- cgit v1.2.3