Domanda

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?

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top