2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-05-30 20:53:12 -04:00
|
|
|
class SearchTopicListItemSerializer < ListableTopicSerializer
|
2018-02-13 15:46:25 -05:00
|
|
|
include TopicTagsMixin
|
2017-05-30 20:53:12 -04:00
|
|
|
|
2018-02-13 15:46:25 -05:00
|
|
|
attributes :category_id
|
2020-07-01 02:28:31 -04:00
|
|
|
|
2020-07-15 23:48:28 -04:00
|
|
|
%i{
|
|
|
|
image_url
|
|
|
|
thumbnails
|
|
|
|
title
|
|
|
|
created_at
|
|
|
|
last_posted_at
|
|
|
|
bumped_at
|
|
|
|
bumped
|
|
|
|
highest_post_number
|
|
|
|
reply_count
|
|
|
|
unseen
|
|
|
|
}.each do |attr|
|
|
|
|
define_method("include_#{attr}?") do
|
|
|
|
false
|
|
|
|
end
|
2020-07-01 02:28:31 -04:00
|
|
|
end
|
2017-05-30 20:53:12 -04:00
|
|
|
end
|