diff options
author | Aram Visser <hello@aramvisser.com> | 2018-06-25 06:19:13 +0300 |
---|---|---|
committer | Aram Visser <hello@aramvisser.com> | 2018-06-25 06:19:13 +0300 |
commit | 0d22b2141f4ba9f75039d9614027b99946f35622 (patch) | |
tree | 60836132cbeebe65a5fba2092ea46454f197f0f2 /app/controllers/projects_controller.rb | |
parent | 2bac2918b2d6f12d94f739f4b6865b9e9221c642 (diff) |
Set flash error message only for current request when updating project
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index efb30ba4715..c2492a137fb 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -63,7 +63,7 @@ class ProjectsController < Projects::ApplicationController redirect_to(edit_project_path(@project)) end else - flash[:alert] = result[:message] + flash.now[:alert] = result[:message] format.html { render 'edit' } end |