Use flash[:notice] only
This commit is contained in:
parent
52d5d7daf1
commit
90480359d5
1 changed files with 1 additions and 2 deletions
|
@ -8,10 +8,9 @@ class Projects::PipelinesSettingsController < Projects::ApplicationController
|
|||
|
||||
def update
|
||||
if @project.update_attributes(update_params)
|
||||
flash[:notice] = "CI/CD Pipelines settings for '#{@project.name}' was successfully updated."
|
||||
flash[:notice] = "CI/CD Pipelines settings for '#{@project.name}' were successfully updated."
|
||||
redirect_to(
|
||||
namespace_project_pipelines_settings_path(@project.namespace, @project),
|
||||
notice: "CI/CD Pipelines settings for '#{@project.name}' was successfully updated."
|
||||
)
|
||||
else
|
||||
render 'index'
|
||||
|
|
Loading…
Reference in a new issue