Use flash[:notice] only

This commit is contained in:
Kamil Trzcinski 2016-07-20 14:48:23 +02:00
parent 52d5d7daf1
commit 90480359d5
1 changed files with 1 additions and 2 deletions

View File

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