summaryrefslogtreecommitdiff
path: root/app/controllers/projects
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-07-20 14:54:15 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-07-20 14:54:15 +0200
commit545cecb28c02a2350b6ecb7a8c0080f9663734d3 (patch)
tree91e5d354b6fc7d0d54d4f6f2c08b26d080731de3 /app/controllers/projects
parent90480359d5a23e2c01a16aef2679bb6720f3d751 (diff)
downloadgitlab-ce-545cecb28c02a2350b6ecb7a8c0080f9663734d3.tar.gz
Change how we style redirect_to
Diffstat (limited to 'app/controllers/projects')
-rw-r--r--app/controllers/projects/pipelines_settings_controller.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/projects/pipelines_settings_controller.rb b/app/controllers/projects/pipelines_settings_controller.rb
index 1b63ab2352f..85ba706e5cd 100644
--- a/app/controllers/projects/pipelines_settings_controller.rb
+++ b/app/controllers/projects/pipelines_settings_controller.rb
@@ -9,9 +9,7 @@ class Projects::PipelinesSettingsController < Projects::ApplicationController
def update
if @project.update_attributes(update_params)
flash[:notice] = "CI/CD Pipelines settings for '#{@project.name}' were successfully updated."
- redirect_to(
- namespace_project_pipelines_settings_path(@project.namespace, @project),
- )
+ redirect_to namespace_project_pipelines_settings_path(@project.namespace, @project)
else
render 'index'
end