discourse/app/serializers/basic_topic_serializer.rb

10 lines
234 B
Ruby

require_dependency 'age_words'
# The most basic attributes of a topic that we need to create a link for it.
class BasicTopicSerializer < ApplicationSerializer
include ActionView::Helpers
attributes :id, :fancy_title, :slug
end