I am currently using the gem 'Public Activity', and in the view I have a users activity filtered to only show that user the activities that apply to them, such as 'John Smith commented on your post'. However, I would like to add notifications to this, like facebook or twitter, where a badge shows a number, and when you see the feed the badge disappears.
I have found a gem called Unread which looks ideal, except it requires adding acts_as_readable :on => :created_at
to your model, and as I'm using the public_activity gem the class is not accessible to add this.
Is it possible to inject the code the unread gem requires, into the PublicActivity:Activity class?
Links:
gem public_activity: https://github.com/pokonski/public_activity
gem unread: https://github.com/ledermann/unread