aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
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/CHANGELOG.md
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/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index b09d9e336b..0fbe5bfaed 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,17 @@
+* 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 callbacks.
+ config.active_record.errors_in_transactional_callbacks = true
+
+ Fixes #13460.
+
+ *arthurnn*
+
* Fixed an issue where custom accessor methods (such as those generated by
`enum`) with the same name as a global method are incorrectly overridden
when subclassing.