From 31e226eeeb3d4bd7cc67a0a93450c47bf72072cf Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sun, 3 Aug 2008 01:32:55 +0200 Subject: say explicitily that after_* callbacks run within the save/destroy transaction --- activerecord/lib/active_record/transactions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/transactions.rb b/activerecord/lib/active_record/transactions.rb index 0531afbb52..d1bf26f331 100644 --- a/activerecord/lib/active_record/transactions.rb +++ b/activerecord/lib/active_record/transactions.rb @@ -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 after_* callbacks. # # == Exception handling and rolling back # -- cgit v1.2.3