2021-01-03 14:25:43 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class EnvironmentPresenter < Gitlab::View::Presenter::Delegated
|
|
|
|
include ActionView::Helpers::UrlHelper
|
|
|
|
|
2021-11-18 22:05:49 +05:30
|
|
|
presents ::Environment, as: :environment
|
2021-01-03 14:25:43 +05:30
|
|
|
|
|
|
|
def path
|
2021-01-29 00:20:46 +05:30
|
|
|
project_environment_path(project, self)
|
2021-01-03 14:25:43 +05:30
|
|
|
end
|
|
|
|
end
|