gitlab-org--gitlab-foss/app/presenters/ci/variable_presenter.rb
gfyoung d5bf57a6af Enable frozen string in presenters and policies
Enable frozen string in:

* app/presenters
* app/policies

Partially addresses #47424.
2018-07-24 13:18:25 -07:00

23 lines
393 B
Ruby

# frozen_string_literal: true
module Ci
class VariablePresenter < Gitlab::View::Presenter::Delegated
presents :variable
def placeholder
'PROJECT_VARIABLE'
end
def form_path
project_settings_ci_cd_path(project)
end
def edit_path
project_variables_path(project)
end
def delete_path
project_variables_path(project)
end
end
end