summaryrefslogtreecommitdiff
path: root/app/controllers/projects
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-07-06 20:18:11 +0900
committerShinya Maeda <shinya@gitlab.com>2017-07-07 15:35:12 +0900
commitb7d17aab66343d94e5aa9c1680d6bbf5fdfc173f (patch)
treeaedc11164c8e8cb41cde2d972b91cf05fa4971ab /app/controllers/projects
parent8c434a52fcfc92ffbd8bf9aa5ee2893724d3c666 (diff)
downloadgitlab-ce-b7d17aab66343d94e5aa9c1680d6bbf5fdfc173f.tar.gz
Use new project_variables_path in this MR
Diffstat (limited to 'app/controllers/projects')
-rw-r--r--app/controllers/projects/variables_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/projects/variables_controller.rb b/app/controllers/projects/variables_controller.rb
index e8dcfa92348..a7fd4c2657c 100644
--- a/app/controllers/projects/variables_controller.rb
+++ b/app/controllers/projects/variables_controller.rb
@@ -5,7 +5,7 @@ class Projects::VariablesController < Projects::ApplicationController
layout 'project_settings'
def index
- redirect_to namespace_project_settings_ci_cd_path(@project.namespace, @project)
+ redirect_to project_settings_ci_cd_path(@project)
end
def show
@@ -34,11 +34,11 @@ class Projects::VariablesController < Projects::ApplicationController
def destroy
if variable.destroy
- redirect_to namespace_project_settings_ci_cd_path(project.namespace, project),
+ redirect_to project_settings_ci_cd_path(project),
status: 302,
notice: 'Variable was successfully removed.'
else
- redirect_to namespace_project_settings_ci_cd_path(project.namespace, project),
+ redirect_to project_settings_ci_cd_path(project),
status: 302,
notice: 'Failed to remove the variable.'
end