active_interaction
active_interaction copied to clipboard
Add `<kind>_<action>` method to handle callback
I think
before_execute :some_callback
is much more nice API than below.
set_callback :execute, :before, :some_callback
So, I add helper method to provide similar interface in ActiveRecord
like after_commit
, before_validation
.