Fork me on GitHub!
Señor Developer!


Ruby User Group Berlin

Replacing ActiveRecord callbacks with Pub/Sub

this Topic will be presented by Niall Burkley

at March Meetup 2017, hosted by Tobias Pfeiffer

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.

7 People like it