Welcome to mirror list, hosted at ThFree Co, Russian Federation.

environment_presenter.rb « presenters « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3fa31eb69a2fdd17df474427d64dd8dc8e6ca052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class EnvironmentPresenter < Gitlab::View::Presenter::Delegated
  include ActionView::Helpers::UrlHelper

  presents :environment

  def path
    if Feature.enabled?(:expose_environment_path_in_alert_details, project)
      project_environment_path(project, self)
    end
  end
end