mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-04 12:51:41 -05:00
921dd75dd9
FEATURE: display category in search results FEATURE: display topic state (locked/pinned/etc) in search results UI cleanup for search results, clearing floats and so on.
9 lines
177 B
Ruby
9 lines
177 B
Ruby
class SearchPostSerializer < PostSerializer
|
|
|
|
has_one :topic, serializer: TopicListItemSerializer
|
|
|
|
attributes :blurb
|
|
def blurb
|
|
options[:result].blurb(object)
|
|
end
|
|
end
|