discourse/app/serializers/search_post_serializer.rb
2016-08-05 12:43:50 -04:00

11 lines
202 B
Ruby

class SearchPostSerializer < PostSerializer
has_one :topic, serializer: TopicListItemSerializer
attributes :like_count
attributes :blurb
def blurb
options[:result].blurb(object)
end
end