aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/wheel.rb
diff options
context:
space:
mode:
authorArthur Neves <arthurnn@gmail.com>2014-08-18 00:34:20 -0400
committerArthur Neves <arthurnn@gmail.com>2014-08-18 14:47:48 -0400
commitb11b1e868a89319b8523c5f7b0da4c130ee42992 (patch)
treea93feaa55fba0e6d716362c5d6ee07edac2ea1cb /activerecord/test/models/wheel.rb
parente759b5277e404cb0ca8353d0c6eba8a5c471af41 (diff)
downloadrails-b11b1e868a89319b8523c5f7b0da4c130ee42992.tar.gz
rails-b11b1e868a89319b8523c5f7b0da4c130ee42992.tar.bz2
rails-b11b1e868a89319b8523c5f7b0da4c130ee42992.zip
Add option to stop swallowing errors on callbacks.
Currently, Active Record will rescue any errors raised within after_rollback/after_create callbacks and print them to the logs. Next versions of rails will not rescue those errors anymore, and just bubble them up, as the other callbacks. This adds a opt-in flag to enable that behaviour, of not rescuing the errors. Example: # For not swallow errors in after_commit/after_rollback config.active_record.errors_in_transactional_callbacks = true [fixes #13460]
Diffstat (limited to 'activerecord/test/models/wheel.rb')
0 files changed, 0 insertions, 0 deletions