Lets say I have the following class
class Foo < ActiveRecord::Base
before_save :before_callback_1, :before_callback_2, :before_callback_3
after_save :after_callback_1, :after_callback_2, :after_callback_3
end
I want to do something like:
foo = Foo.new
foo.run_before_save_callbacks
foo.update_columns(...)
foo.run_after_save_callbacks
Is there some active record method that allows me to do this or do I need to get a list of all the callbacks and filter them and run them manually?