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

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

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.3.1
    • Affects Version/s: None
    • Component/s: 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 Unassigned
            Reporter:
            gcirne Guilherme Cirne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: