rails/rails — pull request #13840 by kuldeepaggarwal (2014-01-25 20:37:44+00:00)
Title: Log type-casted value(s) after `ActiveRecord::RecordNotFound` error.

```ruby
irb(main):002:0> Event.find("im-no-integer")
# Before: ... WHERE `events`.`id` = 0 LIMIT 1
# ActiveRecord::RecordNotFound: Couldn't find Reference with 'id'=im-no-integer

# After: ... WHERE `events`.`id` = 0 LIMIT 1
# ActiveRecord::RecordNotFound: Couldn't find Reference with 'id'=0

```