diff options
author | Akira Matsuda <ronnie@dio.jp> | 2008-10-30 17:43:08 +0900 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-12-08 15:55:02 -0800 |
commit | c3b87dd4c99ba47d316bd03f99b5e23af1fe0ed8 (patch) | |
tree | fe1d9ab25b7f4dd5f994a47099e2e82ef85f9f48 /activerecord | |
parent | 273c770011ab43d4b523caacb808bce070922d77 (diff) | |
download | rails-c3b87dd4c99ba47d316bd03f99b5e23af1fe0ed8.tar.gz rails-c3b87dd4c99ba47d316bd03f99b5e23af1fe0ed8.tar.bz2 rails-c3b87dd4c99ba47d316bd03f99b5e23af1fe0ed8.zip |
Make word separator in AR validation error messages configurable.
[#1294 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activerecord')
-rw-r--r-- | 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 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 |