domain_block_serializer.rb 292 B

1234567891011
  1. # frozen_string_literal: true
  2. class REST::Admin::DomainBlockSerializer < ActiveModel::Serializer
  3. attributes :id, :domain, :created_at, :severity,
  4. :reject_media, :reject_reports,
  5. :private_comment, :public_comment, :obfuscate
  6. def id
  7. object.id.to_s
  8. end
  9. end