FIX: Category link in reviewable (#61)

FIX: Category link in reviewable (#61)

diff --git a/app/serializers/reviewable_category_expert_suggestion_serializer.rb b/app/serializers/reviewable_category_expert_suggestion_serializer.rb
index 0108cec..f6484fd 100644
--- a/app/serializers/reviewable_category_expert_suggestion_serializer.rb
+++ b/app/serializers/reviewable_category_expert_suggestion_serializer.rb
@@ -3,9 +3,8 @@
 require_dependency 'reviewable_serializer'
 
 class ReviewableCategoryExpertSuggestionSerializer < ReviewableSerializer
-  attributes :endorsed_by, :endorsed_count, :category, :user
+  attributes :endorsed_by, :endorsed_count
 
-  has_one :category, serializer: CategorySerializer, root: false, embed: :objects
   has_one :user, serializer: BasicUserSerializer, root: false, embed: :objects
 
   def endorsed_users
@@ -27,8 +26,12 @@ class ReviewableCategoryExpertSuggestionSerializer < ReviewableSerializer
     endorsed_users.count
   end
 
-  def category
-    object.target.category
+  def category_id
+    object.target.category_id
+  end
+
+  def include_category_id?
+    true
   end
 
   def user

GitHub sha: 71e7b77b58e7ac483582b378d1b828269f26ee6c

This commit appears in #61 which was approved by eviltrout. It was merged by markvanlan.