We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Instead of (or in addition to) Object.with_deleted { current_user.objects.find(...) }
Object.with_deleted { current_user.objects.find(...) }
We should have: current_user.objects.with_deleted.find(...)
current_user.objects.with_deleted.find(...)
I was looking in https://github.com/sricc/soft_deletion/blob/master/lib/soft_deletion/core.rb
https://github.com/sricc/soft_deletion/blob/master/lib/soft_deletion/core.rb
and it looks like you could just add this:
scope :with_deleted, -> { unscoped {} }
Note: I'm using Ruby 2.0, and Rails 4
The text was updated successfully, but these errors were encountered:
Can you make it a PR ? It's fine if it does not work on all versions, we can put a if AR::VERSION::MAJOR > x around it
AR::VERSION::MAJOR
Sorry, something went wrong.
I don't really have time at the moment.
My temp fix was just to add that scope to my model.
No branches or pull requests
Instead of (or in addition to)
Object.with_deleted { current_user.objects.find(...) }
We should have:
current_user.objects.with_deleted.find(...)
I was looking in
https://github.com/sricc/soft_deletion/blob/master/lib/soft_deletion/core.rb
and it looks like you could just add this:
Note: I'm using Ruby 2.0, and Rails 4
The text was updated successfully, but these errors were encountered: