Add admin API for managing e-mail domain blocks (#19066)

This commit is contained in:
Eugen Rochko 2022-08-28 03:37:55 +02:00 committed by GitHub
parent c556c3a0d1
commit 2a7766dcc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 101 additions and 0 deletions

View file

@ -0,0 +1,9 @@
# frozen_string_literal: true
class REST::Admin::EmailDomainBlockSerializer < ActiveModel::Serializer
attributes :id, :domain, :created_at, :history
def id
object.id.to_s
end
end