Question

I'm thinking about my options here.

  • implement it with after_create/after_update hooks in activerecord with models.
  • using ActiveSupport::Notifications to decouple activity feed objects with models.
  • use observer.

I wasn't able to find much information about the second approach. And I imagine the third one is kinda like the first one. Am I using ActiveSupport::Notifications wrong? Why?

Was it helpful?

Solution

Found this post about using ActiveSupport::Notification to implement email notifications. It might be similar with activity streams.

http://alma-connect.github.io/techblog/2014/03/rails-pub-sub.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top