2020-10-13 02:09:09 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class EnvironmentPresenter < Gitlab::View::Presenter::Delegated
|
|
|
|
include ActionView::Helpers::UrlHelper
|
|
|
|
|
2021-09-21 05:12:21 -04:00
|
|
|
presents ::Environment, as: :environment
|
2020-10-13 02:09:09 -04:00
|
|
|
|
|
|
|
def path
|
2020-10-28 05:08:37 -04:00
|
|
|
project_environment_path(project, self)
|
2020-10-13 02:09:09 -04:00
|
|
|
end
|
|
|
|
end
|