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

This commit is contained in:
Xavier Noria
2008-08-03 01:32:55 +02:00
parent bd1c02fe4a
commit 31e226eeeb

View File

@@ -64,7 +64,7 @@ module ActiveRecord
#
# 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
#