about summary refs log tree commit diff
path: root/app/serializers/rest/conversation_serializer.rb
blob: 08cea47d2255c801be0a6067b9396e123a101248 (plain) (blame)
1
2
3
4
5
6
7
# frozen_string_literal: true

class REST::ConversationSerializer < ActiveModel::Serializer
  attribute :id
  has_many :participant_accounts, key: :accounts, serializer: REST::AccountSerializer
  has_one :last_status, serializer: REST::StatusSerializer
end