mirror of
https://github.com/discourse/discourse.git
synced 2024-12-17 13:13:44 +08:00
11 lines
202 B
Ruby
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
|