FIX: Category link in reviewable (PR #61)

The front-end reviewable model converts category_id to a full-on category model, so no need to serialize category. Also, category_id and include_category_id? are defined on the base ReviewableSerializer, so have to override both those methods for this reviewable.

This category link is broken right now, but look here! It’s fixed!


I think you can add category_id to the attributes list instead of defining this method

no, category_id is already added to attributes in the serializer it’s inheriting from. category_id is also a defined method from the base serializer, and I need to override it

1 Like