Commit 545cecb2 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Change how we style redirect_to

parent 90480359
...@@ -9,9 +9,7 @@ class Projects::PipelinesSettingsController < Projects::ApplicationController ...@@ -9,9 +9,7 @@ class Projects::PipelinesSettingsController < Projects::ApplicationController
def update def update
if @project.update_attributes(update_params) if @project.update_attributes(update_params)
flash[:notice] = "CI/CD Pipelines settings for '#{@project.name}' were successfully updated." flash[:notice] = "CI/CD Pipelines settings for '#{@project.name}' were successfully updated."
redirect_to( redirect_to namespace_project_pipelines_settings_path(@project.namespace, @project)
namespace_project_pipelines_settings_path(@project.namespace, @project),
)
else else
render 'index' render 'index'
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