diff options
author | Christopher Dell <chris@tigrish.com> | 2012-03-05 00:17:47 +0100 |
---|---|---|
committer | Christopher Dell <chris@tigrish.com> | 2012-03-05 00:17:47 +0100 |
commit | 4da6e1cce2833474034fda0cbb67b2cc35e828da (patch) | |
tree | a5f8ec86294c8bb8f2eb8f452ce0b7f01cc6e617 /activerecord/lib/active_record | |
parent | f8f66a3792629963e91015398985cb4fad9e5900 (diff) | |
download | rails-4da6e1cce2833474034fda0cbb67b2cc35e828da.tar.gz rails-4da6e1cce2833474034fda0cbb67b2cc35e828da.tar.bz2 rails-4da6e1cce2833474034fda0cbb67b2cc35e828da.zip |
Allow translations of activerecord.errors.messages.record_invalid to be looked up in errors.messages.record_invalid
Diffstat (limited to 'activerecord/lib/active_record')
-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 4b075183c3..d06020b3ce 100644 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -14,7 +14,7 @@ module ActiveRecord def initialize(record) @record = record errors = @record.errors.full_messages.join(", ") - super(I18n.t("activerecord.errors.messages.record_invalid", :errors => errors)) + super(I18n.t(:"#{@record.class.i18n_scope}.errors.messages.record_invalid", :errors => errors, :default => :"errors.messages.record_invalid")) end end |