summaryrefslogtreecommitdiff
path: root/app/presenters/environment_presenter.rb
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