-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
with_deleted scope #75
Comments
Feel free to open PR. Just wondering how to detect related feature is present, using Mongoid version check? |
In my app I patched |
@stanley90 sounds good |
Actually need to wait until next Mongoid 9 release. Will come back. |
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
The text was updated successfully, but these errors were encountered: