discourse/app/serializers/topic_poster_serializer.rb

6 lines
201 B
Ruby

class TopicPosterSerializer < ApplicationSerializer
attributes :extras, :description
has_one :user, serializer: BasicUserSerializer
has_one :primary_group, serializer: PrimaryGroupSerializer
end