This project is archived and is in readonly mode.
find_by_xxx! bang method, have better error messages
-
Frederick Cheung
- Tag changed from featurerequest, rails to activerecord, featurerequest, patch, rails
This should do it. If you use find_by_xxx_and_yyy! then the exception's message will be along the lines of
Couldn't find Asset with xxx = 123, yyy = 456
-
Repository
- State changed from new to resolved
(from [428e77bf0fcee4369cb8d94011141f791b8e2ba9]) Make exceptions raise from find_by_foo! have a more helpful message [#1567 find_by_xxx! bang method, have better error messages state:resolved] http://github.com/rails/rails/co...
