Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4975

Add callbacks to Mongoid::Documents related to Mongo transactions

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 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)

            Assignee:
            Unassigned Unassigned
            Reporter:
            arthurmde@gmail.com Arthur Del Esposte
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: