Add callbacks to Mongoid::Documents related to Mongo transactions

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Callbacks
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Arthur Del Esposte
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: