about summary refs log tree commit diff
path: root/app/serializers/rest/status_domain_permission_serializer.rb
blob: ecdecdd3b8642a030773c10f00834f367cd89e14 (plain) (blame)
1
2
3
4
5
6
7
8
9
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