mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-13 13:31:19 +00:00
11 lines
297 B
Ruby
11 lines
297 B
Ruby
# frozen_string_literal: true
|
|
|
|
class DeploymentSerializer < BaseSerializer
|
|
entity DeploymentEntity
|
|
|
|
def represent_concise(resource, opts = {})
|
|
opts[:only] = [:iid, :id, :sha, :created_at, :deployed_at, :tag, :last?, :is_last, :id, { ref: [:name] }]
|
|
represent(resource, opts)
|
|
end
|
|
end
|