AaronLasseigne / active_interaction

:briefcase: Manage application specific business logic.
MIT License
2.07k stars 137 forks source link

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

Open heka1024 opened 1 year ago

heka1024 commented 1 year ago

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 commented 10 months ago

@AaronLasseigne Could you please take a look? Your feedback is much appreciated!