mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 15:29:39 +08:00
12 lines
203 B
Ruby
12 lines
203 B
Ruby
class SearchPostSerializer < PostSerializer
|
|
|
|
has_one :topic, serializer: TopicListItemSerializer
|
|
|
|
attributes :like_count
|
|
|
|
attributes :blurb
|
|
def blurb
|
|
options[:result].blurb(object)
|
|
end
|
|
end
|