Commit 61d5b138 authored by Shinya Maeda's avatar Shinya Maeda

Adopt project_variable_path instead of namespace_project_variable_path....

Adopt project_variable_path instead of namespace_project_variable_path. (Resolve confilct from master)
parent 5c68fa66
...@@ -13,7 +13,7 @@ class Projects::VariablesController < Projects::ApplicationController ...@@ -13,7 +13,7 @@ class Projects::VariablesController < Projects::ApplicationController
def update def update
if @variable.update(project_params) if @variable.update(project_params)
redirect_to namespace_project_variables_path(project.namespace, project), redirect_to project_variables_path(project),
notice: 'Variable was successfully updated.' notice: 'Variable was successfully updated.'
else else
render "show" render "show"
...@@ -24,7 +24,7 @@ class Projects::VariablesController < Projects::ApplicationController ...@@ -24,7 +24,7 @@ class Projects::VariablesController < Projects::ApplicationController
new_variable = project.variables.create(project_params) new_variable = project.variables.create(project_params)
if new_variable.persisted? if new_variable.persisted?
redirect_to namespace_project_settings_ci_cd_path(project.namespace, project), redirect_to project_settings_ci_cd_path(project),
notice: 'Variables were successfully updated.' notice: 'Variables were successfully updated.'
else else
@variable = new_variable.present(current_user: current_user) @variable = new_variable.present(current_user: current_user)
......
...@@ -15,11 +15,11 @@ module Ci ...@@ -15,11 +15,11 @@ module Ci
end end
def edit_path def edit_path
namespace_project_variable_path(project.namespace, project, variable) project_variable_path(project, variable)
end end
def delete_path def delete_path
namespace_project_variable_path(project.namespace, project, variable) project_variable_path(project, variable)
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment