report_serializer.rb 322 B

123456789101112
  1. # frozen_string_literal: true
  2. class REST::ReportSerializer < ActiveModel::Serializer
  3. attributes :id, :action_taken, :action_taken_at, :category, :comment,
  4. :forwarded, :created_at, :status_ids, :rule_ids
  5. has_one :target_account, serializer: REST::AccountSerializer
  6. def id
  7. object.id.to_s
  8. end
  9. end