Open heka1024 opened 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.
ActiveRecord
after_commit
before_validation
@AaronLasseigne Could you please take a look? Your feedback is much appreciated!
I think
is much more nice API than below.
So, I add helper method to provide similar interface in
ActiveRecord
likeafter_commit
,before_validation
.