about summary refs log tree commit diff
path: root/app/serializers/rest/admin/domain_block_serializer.rb
blob: b955d008a6e62b8cbe5813557b8101380877ca83 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class REST::Admin::DomainBlockSerializer < ActiveModel::Serializer
  attributes :id, :domain, :created_at, :severity,
             :reject_media, :reject_reports,
             :private_comment, :public_comment, :obfuscate

  def id
    object.id.to_s
  end
end