mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 03:23:37 +08:00
7 lines
297 B
Ruby
7 lines
297 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
|
|
end
|