-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
Hi, I needed to have an option to remove the paranoia condition from an already-chained query (so can't use unscoped anymore), so I added the following scope:
scope :with_deleted, -> { criteria.remove_scoping(base.unscoped.where(deleted_at: nil)) }
Would you consider including it in Paranoia?
(note: it depends on this mongodb/mongoid#5832)
Thanks
Metadata
Metadata
Assignees
Labels
No labels