about summary refs log tree commit diff
path: root/app/serializers/rest/admin
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/rest/admin')
-rw-r--r--app/serializers/rest/admin/canonical_email_block_serializer.rb9
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