diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-12-01 11:49:36 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-12-01 12:49:46 +0900 |
commit | 0dc3b6535dfb8127f568bb4abc2fb09118ce4b96 (patch) | |
tree | ef8e9543dd355489af3ff8ecc668dcecd99efdbc /activerecord/test/cases/migration/change_table_test.rb | |
parent | 81b2aed360221a2cb5419cc1e5fd697961a183a6 (diff) | |
download | rails-0dc3b6535dfb8127f568bb4abc2fb09118ce4b96.tar.gz rails-0dc3b6535dfb8127f568bb4abc2fb09118ce4b96.tar.bz2 rails-0dc3b6535dfb8127f568bb4abc2fb09118ce4b96.zip |
Maintain raising `RecordNotFound` for class level `update` and` destroy`
In 35836019, class level `update` and `destroy` suppressed
`RecordNotFound` to ensure returning affected objects. But
`RecordNotFound` is a common exception caught by a `rescue_from`
handler. So changing the behavior when a typical `params[:id]` is passed
has a compatibility problem. The previous behavior should not be
changed.
Fixes #31301.
Diffstat (limited to 'activerecord/test/cases/migration/change_table_test.rb')
0 files changed, 0 insertions, 0 deletions