Rails: Keeping count of users unread notifications

后端 未结 2 1536
伪装坚强ぢ
伪装坚强ぢ 2021-02-02 01:22

I currently have an activity model that handles a user activity notification system. An activity observer creates a new activity when some action happens (such as a new article

2条回答
  •  隐瞒了意图╮
    2021-02-02 01:31

    Please have a look at this gem:
    https://github.com/ledermann/unread

    It's written by me and handles read/unread status of any ActiveRecord objects in a more performant way.

提交回复
热议问题