search_serializer.rb 317 Bytes
Newer Older
Rob Colbert's avatar
Rob Colbert committed
1 2 3 4 5 6
# frozen_string_literal: true

class REST::V2::SearchSerializer < ActiveModel::Serializer
  has_many :accounts, serializer: REST::AccountSerializer
  has_many :statuses, serializer: REST::StatusSerializer
  has_many :hashtags, serializer: REST::TagSerializer
mgabdev's avatar
mgabdev committed
7
  has_many :groups, serializer: REST::GroupSerializer
Rob Colbert's avatar
Rob Colbert committed
8
end