summaryrefslogtreecommitdiff
path: root/app/presenters/ci/group_variable_presenter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/presenters/ci/group_variable_presenter.rb')
-rw-r--r--app/presenters/ci/group_variable_presenter.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/app/presenters/ci/group_variable_presenter.rb b/app/presenters/ci/group_variable_presenter.rb
index 81fea106a5c..98d68bc7a83 100644
--- a/app/presenters/ci/group_variable_presenter.rb
+++ b/app/presenters/ci/group_variable_presenter.rb
@@ -7,19 +7,15 @@ module Ci
end
def form_path
- if variable.persisted?
- group_variable_path(group, variable)
- else
- group_variables_path(group)
- end
+ group_settings_ci_cd_path(group)
end
def edit_path
- group_variable_path(group, variable)
+ group_variables_path(group)
end
def delete_path
- group_variable_path(group, variable)
+ group_variables_path(group)
end
end
end