mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
refactor search code to deal with proper objects use proper serializers, test the controllers
9 lines
177 B
Ruby
9 lines
177 B
Ruby
class SearchPostSerializer < PostSerializer
|
|
|
|
has_one :topic, serializer: ListableTopicSerializer
|
|
|
|
attributes :blurb
|
|
def blurb
|
|
options[:result].blurb(object)
|
|
end
|
|
end
|