My custom destroy method does not trigger the default before and after destroy callbacks
问题 I am writing a plugin that provides drafting for models. A delete action is a draftable action and I do not always want to delete the origin until that deletion is published. So I wrote my own destroy method to help out with this. Everything works exactly as I want things to except, custom callbacks for :before_destroy and :after_destroy are no longer being triggered. Any ideas on how to: rebind callbacks to my destroy method works some alias_method_chain voodoo get a list of model callbacks