Change how we style redirect_to

This commit is contained in:
Kamil Trzcinski 2016-07-20 14:54:15 +02:00
parent 90480359d5
commit 545cecb28c
1 changed files with 1 additions and 3 deletions

View File

@ -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