debian-mirror-gitlab/app/presenters/deployments/deployment_presenter.rb
2022-10-11 01:57:18 +05:30

17 lines
325 B
Ruby

# frozen_string_literal: true
module Deployments
class DeploymentPresenter < Gitlab::View::Presenter::Delegated
presents ::Deployment, as: :deployment
delegator_override :tags
def tags
super.map do |tag|
{
name: tag,
path: "tags/#{tag}"
}
end
end
end
end