문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top