diff options
author | Brian Durand <brian@embellishedvisions.com> | 2010-04-29 15:13:09 -0500 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-04-29 18:26:19 -0700 |
commit | d2a49e4b1f30c5997e169110eed94a55aee53f56 (patch) | |
tree | ed33d21ac2054a86753baba15d840c11be9b7eee /activerecord/lib | |
parent | c54c84b7b4d933013ffc7a3ca449117bd7663433 (diff) | |
download | rails-d2a49e4b1f30c5997e169110eed94a55aee53f56.tar.gz rails-d2a49e4b1f30c5997e169110eed94a55aee53f56.tar.bz2 rails-d2a49e4b1f30c5997e169110eed94a55aee53f56.zip |
Update after_commit and after_rollback docs and tests to use new style API with an :on options instead of on_* suffix.
[#2991]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/transactions.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/transactions.rb b/activerecord/lib/active_record/transactions.rb index 9e48228a40..0a55ef2b53 100644 --- a/activerecord/lib/active_record/transactions.rb +++ b/activerecord/lib/active_record/transactions.rb @@ -170,11 +170,6 @@ module ActiveRecord # are called on every record saved or destroyed within a transaction immediately after the # transaction or savepoint is rolled back. # - # Additionally, there are callbacks for after_commit_on_create, after_rollback_on_create, - # after_commit_on_update, after_rollback_on_update, after_commit_on_destroy, and - # after_rollback_on_destroy which are only called if a record is created, updated or destroyed - # in the transaction. - # # These callbacks are useful for interacting with other systems since you will be guaranteed # that the callback is only executed when the database is in a permanent state. For example, # after_commit is a good spot to put in a hook to clearing a cache since clearing it from |