-
Notifications
You must be signed in to change notification settings - Fork 196
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
Question: Skip recover functionality #267
Comments
Hi @vitalinfo I'm not sure what you have in mind. Can you give a code example of how this would be used? In any case, you can prevent nested objects from being recovered by using |
@mvz yes, you are right for common case, but if you need some additional logic, like: |
Assuming that you have some way to know which comments were deleted by the user, that would be something like:
|
@mvz yes, this will work, but if user model has a lot of associations, the recover complexity will be huge |
@vitalinfo and how will this feature help with that? What would the code look like? |
I'll do this feature, in worse case I'll use fork in my project |
@mvz What do you think about skip recover functionality?
This feature could be helpful for nested objects, where you will be able to mark object as skippable for recover (in the
before_recover
hook)If you approve it, I can prepare the PR with implementation
The text was updated successfully, but these errors were encountered: