aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-11-28 11:40:36 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-11-28 11:40:36 -0800
commit948c0ff1647eb3dd1b45add0d1748d393cd2fd50 (patch)
tree61251b44f9472a2615735f3eccc40a8d39efe46d
parentcca71659b7027c7206749f2e35e8a235033fe287 (diff)
parent94e688dde556eb05109a2da268656d3ff976d937 (diff)
downloadrails-948c0ff1647eb3dd1b45add0d1748d393cd2fd50.tar.gz
rails-948c0ff1647eb3dd1b45add0d1748d393cd2fd50.tar.bz2
rails-948c0ff1647eb3dd1b45add0d1748d393cd2fd50.zip
Merge pull request #13087 from bikramwp/master
Make it prominent that after_commit and after_rollback swallow exceptions.
-rw-r--r--guides/source/active_record_callbacks.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_callbacks.md b/guides/source/active_record_callbacks.md
index ac5e8ffc0c..863da3be72 100644
--- a/guides/source/active_record_callbacks.md
+++ b/guides/source/active_record_callbacks.md
@@ -358,4 +358,4 @@ end
NOTE: the `:on` option specifies when a callback will be fired. If you
don't supply the `:on` option the callback will fire for every action.
-The `after_commit` and `after_rollback` callbacks are guaranteed to be called for all models created, updated, or destroyed within a transaction block. If any exceptions are raised within one of these callbacks, they will be ignored so that they don't interfere with the other callbacks. As such, if your callback code could raise an exception, you'll need to rescue it and handle it appropriately within the callback.
+WARNING. The `after_commit` and `after_rollback` callbacks are guaranteed to be called for all models created, updated, or destroyed within a transaction block. If any exceptions are raised within one of these callbacks, they will be ignored so that they don't interfere with the other callbacks. As such, if your callback code could raise an exception, you'll need to rescue it and handle it appropriately within the callback.