discourse/app/serializers/basic_topic_serializer.rb

5 lines
192 B
Ruby

# The most basic attributes of a topic that we need to create a link for it.
class BasicTopicSerializer < ApplicationSerializer
attributes :id, :title, :fancy_title, :slug, :posts_count
end