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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
I would need to run some action before destroying a remote record. Why the before_destroy callback is not available?
After looking into the code I had to override/integrate spyke behaviour in my model:
define_model_callbacks :destroy, only: :before def destroy run_callbacks :destroy do super end end
which actually works but I wonder why destroy callback was excluded
thank you
The text was updated successfully, but these errors were encountered:
@masciugo good question!
I'm actually not sure I can think of a good reason to exclude destroy 😅. Most likely we simply didn't need it at the time? 🤔
destroy
Sorry, something went wrong.
No branches or pull requests
I would need to run some action before destroying a remote record. Why the before_destroy callback is not available?
After looking into the code I had to override/integrate spyke behaviour in my model:
which actually works but I wonder why destroy callback was excluded
thank you
The text was updated successfully, but these errors were encountered: