debian-mirror-gitlab/app/serializers/deployment_serializer.rb
2019-10-12 21:52:04 +05:30

10 lines
283 B
Ruby

# frozen_string_literal: true
class DeploymentSerializer < BaseSerializer
entity DeploymentEntity
def represent_concise(resource, opts = {})
opts[:only] = [:iid, :id, :sha, :created_at, :finished_at, :tag, :last?, :id, ref: [:name]]
represent(resource, opts)
end
end