mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
say explicitily that after_* callbacks run within the save/destroy transaction
This commit is contained in:
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user