gitlab-org--gitlab-foss/app/serializers/cluster_serializer.rb
2017-10-31 12:23:31 +01:00

7 lines
184 B
Ruby

class ClusterSerializer < BaseSerializer
entity ClusterEntity
def represent_status(resource)
represent(resource, { only: [:status, :status_reason, :applications] })
end
end