From 26ac6732c325397a4dca6e1af82d211baeb277c4 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Thu, 30 Oct 2008 17:43:08 +0900 Subject: [PATCH] Make word separator in AR validation error messages configurable. --- activerecord/lib/active_record/validations.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index 9220eae..1111a5c 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 -- 1.6.0.2