-
Type: New Feature
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Callbacks
After the introduction of [transactions in MongoDB|https://docs.mongodb.com/mongoid/current/tutorials/mongoid-transactions/], it would be very useful to have the callbacks related to the commit stage: after_commit and after_rollback
Also, it would make Mongoid more compatible with the ActiveRecord callbacks.
Implement after_commit callback
Implement after_rollback callback
Add :on option to after_commit and after_rollback callbacks (https://jira.mongodb.org/browse/MONGOID-5058)
- duplicates
-
MONGOID-5531 Add after_commit and after_rollback callbacks
- Closed
- is duplicated by
-
MONGOID-5058 Implement :on option in callbacks
- Closed
- is related to
-
MONGOID-4732 ActiveRecord-Style Transaction API
- Development Complete
-
MONGOID-3520 Could mongoid add an after_commit method, just to keep interfaces between AR intact?
- Closed