DEV Community

Discussion on: Using Rails secret weapon: ActiveSupport::Notifications

Collapse
 
thorstenhirsch profile image
Thorsten Hirsch

Very interesting. Until now I have always been using ActiveRecord callbacks like after_commit in order to trigger stuff. But the callbacks seem to be not 100% reliable recently on my production system and so far I couldn't figure out why.

Guess I'll migrate the callbacks to notifications, which seem to be more flexible anyway.