public_activity gem decorated with Draper

Viewed 1005

I'm trying to decorate a collection of activities created by the public_activity gem using Draper.

However, it appears that PublicActivity::Activity doesn't inherit from ActiveRecord (am I right in assuming that?) so I need to add include Draper::Decoratable to the model, but where is that PublicActivity model exactly?

Btw, this is the error I'm getting:

Could not infer a decorator for PublicActivity::Activity.

2 Answers
Related