You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
543 B
17 lines
543 B
6 years ago
|
# frozen_string_literal: true
|
||
|
|
||
|
class REST::Admin::ReportSerializer < ActiveModel::Serializer
|
||
|
attributes :id, :action_taken, :comment, :created_at, :updated_at
|
||
|
|
||
|
has_one :account, serializer: REST::Admin::AccountSerializer
|
||
|
has_one :target_account, serializer: REST::Admin::AccountSerializer
|
||
|
has_one :assigned_account, serializer: REST::Admin::AccountSerializer
|
||
|
has_one :action_taken_by_account, serializer: REST::Admin::AccountSerializer
|
||
|
|
||
|
has_many :statuses, serializer: REST::StatusSerializer
|
||
|
|
||
|
def id
|
||
|
object.id.to_s
|
||
|
end
|
||
|
end
|