diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-10-20 08:46:41 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-10-20 08:49:27 +0200 |
commit | a702d5aad5e533291267443ad523691e52aa0bd7 (patch) | |
tree | 0ea29e4e7c131ff9f00effb35969fa1787d211ba /activerecord/lib | |
parent | df08a45a77da755409f344de6be5e2af38296310 (diff) | |
parent | 074880c4eab3121025840998e587753203f65f6f (diff) | |
download | rails-a702d5aad5e533291267443ad523691e52aa0bd7.tar.gz rails-a702d5aad5e533291267443ad523691e52aa0bd7.tar.bz2 rails-a702d5aad5e533291267443ad523691e52aa0bd7.zip |
Merge pull request #17019 from yuki24/add-class-name-to-unknown-attr-error
Message on AR::UnknownAttributeError should include the class name of a record
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/errors.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/errors.rb b/activerecord/lib/active_record/errors.rb index 2b9b3c8f73..5b3fdf16f5 100644 --- a/activerecord/lib/active_record/errors.rb +++ b/activerecord/lib/active_record/errors.rb @@ -167,7 +167,7 @@ module ActiveRecord def initialize(record, attribute) @record = record @attribute = attribute.to_s - super("unknown attribute on #{@record.class}: #{attribute}") + super("unknown attribute '#{attribute}' for #{@record.class}.") end end |