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
Hi, I needed to have an option to remove the paranoia condition from an already-chained query (so can't use
unscopedanymore), 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