2016-08-09 13:41:25 -04:00
|
|
|
class SearchPostSerializer < BasicPostSerializer
|
2014-09-02 22:13:13 -04:00
|
|
|
has_one :topic, serializer: TopicListItemSerializer
|
2014-09-02 05:15:08 -04:00
|
|
|
|
2016-08-10 17:54:30 -04:00
|
|
|
attributes :like_count, :blurb, :post_number
|
2015-09-18 03:16:10 -04:00
|
|
|
|
2014-09-02 05:15:08 -04:00
|
|
|
def blurb
|
|
|
|
options[:result].blurb(object)
|
|
|
|
end
|
|
|
|
end
|