discourse/app/serializers/category_serializer.rb

4 lines
106 B
Ruby

class CategorySerializer < ApplicationSerializer
attributes :id, :name, :color, :slug, :topic_count
end