active_interaction icon indicating copy to clipboard operation
active_interaction copied to clipboard

Add `<kind>_<action>` method to handle callback

Open heka1024 opened this issue 9 months ago • 1 comments

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.

heka1024 avatar Sep 29 '23 18:09 heka1024