rails/rails — pull request #10590 by bogdan (2013-05-13 07:59:13+00:00)
Title: Add more data to AR::UnknownAttributeError

This is required in order to be able to rescue such error on app level.

``` ruby
begin
Topic.new("hello" => "world")
rescue ActiveRecord::UnknownAttributeError => e
e.record # => #
e.attribute # => :hello
end
```