Permalink
Browse files

say explicitily that after_* callbacks run within the save/destroy tr…

…ansaction
  • Loading branch information...
1 parent bd1c02f commit 31e226eeeb3d4bd7cc67a0a93450c47bf72072cf @fxn fxn committed Aug 2, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/transactions.rb
@@ -64,7 +64,7 @@ def self.included(base)
#
# Both Base#save and Base#destroy come wrapped in a transaction that ensures that whatever you do in validations or callbacks
# will happen under the protected cover of a transaction. So you can use validations to check for values that the transaction
- # depends on or you can raise exceptions in the callbacks to rollback.
+ # depends on or you can raise exceptions in the callbacks to rollback, including <tt>after_*</tt> callbacks.
#
# == Exception handling and rolling back
#

0 comments on commit 31e226e

Please sign in to comment.