discourse/app/serializers/basic_topic_serializer.rb

5 lines
184 B
Ruby

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