discourse/app/serializers/search_topic_list_item_seri...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
391 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class SearchTopicListItemSerializer < ListableTopicSerializer
2018-02-13 15:46:25 -05:00
include TopicTagsMixin
2018-02-13 15:46:25 -05:00
attributes :category_id
%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
end
end