Replacing ActiveRecord callbacks with Pub-Sub
As your application grows ActiveRecord callbacks can easily get out of hand - creating a chain of dependencies between your models and mixing in business logic where it doesn't belong.
On some recent projects, I've been using the 'wisper' gem to replace some callbacks with a simple publish/subscribe pattern decoupling callbacks from models.
I'd like talk about the benefits of using this approach and give a brief run through of how to go about it.
Niall Burkley
March 02, 2017
Annual Pro sale · Save $30
Have presentations of your own?
Share with private links, password protection, and more control over your work.