Mongoid::Paranoia does not provide a method for soft deletion and running callbacks

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • 2.3.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I would expect that caliing destroy on a document which includes Mongoid::Paranoia would perform a soft delete and run callbacks. But actually it performs a hard delete. In fact, the Mongoid::Paranoia module doesn't touch destroy.

      Is this a bug or expected behaviour? If it's a bug, I could provide a patch. If not, what is the correct way of doing a soft delete and getting callbacks to run?

              Assignee:
              Unassigned
              Reporter:
              Guilherme Cirne
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: