From 88643e2398f176c38721dd186cca42192533e856 Mon Sep 17 00:00:00 2001 From: Marvin Frederickson Date: Sat, 20 Feb 2016 10:52:08 -0900 Subject: [PATCH] closes #1053 --- app/controllers/apps_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/apps_controller.rb b/app/controllers/apps_controller.rb index 5dbc00c..a812306 100644 --- a/app/controllers/apps_controller.rb +++ b/app/controllers/apps_controller.rb @@ -53,7 +53,7 @@ class AppsController < ApplicationController if app.save redirect_to app_url(app), flash: { success: I18n.t('controllers.apps.flash.create.success') } else - flash[:error] = I18n.t('controllers.apps.flash.create.error') + flash.now[:error] = I18n.t('controllers.apps.flash.create.error') render :new end end @@ -63,7 +63,7 @@ class AppsController < ApplicationController if app.save redirect_to app_url(app), flash: { success: I18n.t('controllers.apps.flash.update.success') } else - flash[:error] = I18n.t('controllers.apps.flash.update.error') + flash.now[:error] = I18n.t('controllers.apps.flash.update.error') render :edit end end @@ -76,7 +76,7 @@ class AppsController < ApplicationController if app.destroy redirect_to apps_url, flash: { success: I18n.t('controllers.apps.flash.destroy.success') } else - flash[:error] = I18n.t('controllers.apps.flash.destroy.error') + flash.now[:error] = I18n.t('controllers.apps.flash.destroy.error') render :show end end -- libgit2 0.21.2