aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/upgrading_ruby_on_rails.md
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2014-09-09 10:11:13 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2014-09-09 11:45:20 +0530
commite40c3eee125b9f5717022300e2cc044c4fdd14ff (patch)
tree567cf551aef6ac65690ab416c0026aa672ecf18e /guides/source/upgrading_ruby_on_rails.md
parentfb110381481fe79fa2921d08a60d343d3ea2b363 (diff)
downloadrails-e40c3eee125b9f5717022300e2cc044c4fdd14ff.tar.gz
rails-e40c3eee125b9f5717022300e2cc044c4fdd14ff.tar.bz2
rails-e40c3eee125b9f5717022300e2cc044c4fdd14ff.zip
Update upgrading guide about error handling in transactional callbacks
- Part of 16576 - [ci skip]
Diffstat (limited to 'guides/source/upgrading_ruby_on_rails.md')
-rw-r--r--guides/source/upgrading_ruby_on_rails.md17
1 files changed, 16 insertions, 1 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md
index 989d8400e5..f40fba5483 100644
--- a/guides/source/upgrading_ruby_on_rails.md
+++ b/guides/source/upgrading_ruby_on_rails.md
@@ -63,7 +63,22 @@ TODO: mention https://github.com/rails/rails/pull/16526
### Error handling in transaction callbacks
-TODO: mention https://github.com/rails/rails/pull/16537
+Currently, Active Record suppresses errors raised
+within `after_rollback` or `after_commit` callbacks and only prints them to
+the logs. In the next version, these errors will no longer be suppressed.
+Instead, the errors will propagate normally just like in other Active
+Record callbacks.
+
+When you define a `after_rollback` or `after_commit` callback now, you
+will receive a deprecation warning about this upcoming change. When
+you are ready, you can opt into the new behvaior and remove the
+deprecation warning by adding following configuration to your
+`config/application.rb`:
+
+ config.active_record.raise_in_transactional_callbacks = true
+
+See [#14488](https://github.com/rails/rails/pull/14488) and
+[#16537](https://github.com/rails/rails/pull/16537) for more details.
### Serialized attributes