diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-08-28 03:31:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-28 03:31:54 +0200 |
commit | c556c3a0d1e54a6b07bbdd8f76cbb43672a91fd1 (patch) | |
tree | 4a5b8cbce1e63c42d79c6feb8606343bdb26313b /app/serializers/rest | |
parent | b399d79545e5e5430cb9d6a2c936efc244b69a75 (diff) |
Add admin API for managing canonical e-mail blocks (#19067)
Diffstat (limited to 'app/serializers/rest')
-rw-r--r-- | app/serializers/rest/admin/canonical_email_block_serializer.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/serializers/rest/admin/canonical_email_block_serializer.rb b/app/serializers/rest/admin/canonical_email_block_serializer.rb new file mode 100644 index 000000000..fe385940a --- /dev/null +++ b/app/serializers/rest/admin/canonical_email_block_serializer.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +class REST::Admin::CanonicalEmailBlockSerializer < ActiveModel::Serializer + attributes :id, :canonical_email_hash + + def id + object.id.to_s + end +end |