2014-09-02 05:15:08 -04:00
|
|
|
class GroupedSearchResultSerializer < ApplicationSerializer
|
|
|
|
has_many :posts, serializer: SearchPostSerializer
|
2017-02-13 10:10:28 -05:00
|
|
|
has_many :users, serializer: SearchResultUserSerializer
|
2014-09-02 05:15:08 -04:00
|
|
|
has_many :categories, serializer: BasicCategorySerializer
|
2017-06-07 02:23:48 -04:00
|
|
|
attributes :more_posts, :more_users, :more_categories, :term
|
2014-09-02 05:15:08 -04:00
|
|
|
end
|