I am using Rails 3.1.0, and I would like to know if the after_save and after_destroy callbacks can be handled βthe sameβ. That is, I need to run the same methods for both after_save and after_destroy callbacks.
At this time, I have to handle these callbacks separately, even if they do the same thing:
after_save do |record|
So, is there a way to handle after_save and after_destroy equals?
Backo source share