about summary refs log tree commit diff
path: root/app/serializers/rest/status_domain_permission_serializer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/rest/status_domain_permission_serializer.rb')
-rw-r--r--app/serializers/rest/status_domain_permission_serializer.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/serializers/rest/status_domain_permission_serializer.rb b/app/serializers/rest/status_domain_permission_serializer.rb
new file mode 100644
index 000000000..ecdecdd3b
--- /dev/null
+++ b/app/serializers/rest/status_domain_permission_serializer.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: true
+
+class REST::StatusDomainPermissionSerializer < ActiveModel::Serializer
+  attributes :id, :domain, :visibility
+  has_one :status
+
+  def id
+    object.id.to_s
+  end
+end