mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 12:13:58 -06:00
12 lines
366 B
Ruby
12 lines
366 B
Ruby
class GroupedSearchResultSerializer < ApplicationSerializer
|
|
has_many :posts, serializer: SearchPostSerializer
|
|
has_many :users, serializer: SearchResultUserSerializer
|
|
has_many :categories, serializer: BasicCategorySerializer
|
|
attributes :more_posts, :more_users, :more_categories, :term, :search_log_id
|
|
|
|
def search_log_id
|
|
object.search_log_id
|
|
end
|
|
|
|
end
|