discourse/app/serializers/category_featured_users_ser...

6 lines
142 B
Ruby

class CategoryFeaturedUsersSerializer < CategorySerializer
has_many :featured_users, serializer: BasicUserSerializer, embed: :objects
end