fedibird-fe/app/serializers/rest/compact_search_serializer.rb
2023-02-06 16:28:35 +09:00

8 lines
333 B
Ruby

# frozen_string_literal: true
class REST::CompactSearchSerializer < ActiveModel::Serializer
has_many :accounts, serializer: REST::AccountSerializer
has_one :statuses, serializer: REST::CompactStatusesSerializer
has_many :hashtags, serializer: REST::TagSerializer
has_many :profiles, serializer: REST::AccountSerializer
end