diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-04-10 17:13:17 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-04-10 17:13:17 -0300 |
commit | 632d9d22375dd79614ce731eb42875b65112b987 (patch) | |
tree | 16330faff84df8b9375b66721af76fed48e98ba4 /guides | |
parent | 167e6dacafe60f85b3f176e3d1dfa774699cf747 (diff) | |
parent | 16f481b28bb1299e5aa5c610ca4c90be8482edc7 (diff) | |
download | rails-632d9d22375dd79614ce731eb42875b65112b987.tar.gz rails-632d9d22375dd79614ce731eb42875b65112b987.tar.bz2 rails-632d9d22375dd79614ce731eb42875b65112b987.zip |
Merge pull request #14694 from heironimus/callback_guide
Add after_commit/after_rollback to callback list
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_record_callbacks.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/guides/source/active_record_callbacks.md b/guides/source/active_record_callbacks.md index 667433285f..fbcce325ed 100644 --- a/guides/source/active_record_callbacks.md +++ b/guides/source/active_record_callbacks.md @@ -92,6 +92,7 @@ Here is a list with all the available Active Record callbacks, listed in the sam * `around_create` * `after_create` * `after_save` +* `after_commit/after_rollback` ### Updating an Object @@ -103,12 +104,14 @@ Here is a list with all the available Active Record callbacks, listed in the sam * `around_update` * `after_update` * `after_save` +* `after_commit/after_rollback` ### Destroying an Object * `before_destroy` * `around_destroy` * `after_destroy` +* `after_commit/after_rollback` WARNING. `after_save` runs both on create and update, but always _after_ the more specific callbacks `after_create` and `after_update`, no matter the order in which the macro calls were executed. |