diff options
author | Bogdan Gusiev <agresso@gmail.com> | 2013-05-13 10:54:59 +0300 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-16 13:31:35 -0700 |
commit | 711097e6a5af61a31a0547223038a4b5e1d59366 (patch) | |
tree | 32ba32fbfb99662a4f14a889846f1500f3f31c90 /activerecord/test/cases/mixin_test.rb | |
parent | e38c93a120de84ee5c2f22e9da942233a7edd22e (diff) | |
download | rails-711097e6a5af61a31a0547223038a4b5e1d59366.tar.gz rails-711097e6a5af61a31a0547223038a4b5e1d59366.tar.bz2 rails-711097e6a5af61a31a0547223038a4b5e1d59366.zip |
Add more data to AR::UnknownAttributeError
begin
Topic.new("hello" => "world")
rescue ActiveRecord::UnknownAttributeError => e
e.record # => #<Topic ... >
e.attribute # => "hello"
end
Diffstat (limited to 'activerecord/test/cases/mixin_test.rb')
0 files changed, 0 insertions, 0 deletions