mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
11 lines
203 B
Ruby
11 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
|