about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorunarist <m.unarist@gmail.com>2017-05-27 20:04:28 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-27 13:04:28 +0200
commitecef03bb15ed3d82a48b9efdb6e8811e1922339e (patch)
tree259bbe0930d7323c20f1678b47c080724bb33628 /app/controllers
parent9642601126541347cbf6f49105ba7254e0ab234a (diff)
Fix empty flash message on the settings page (#3345)
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/auth/sessions_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/auth/sessions_controller.rb b/app/controllers/auth/sessions_controller.rb
index f399c6f49..79e3da5f9 100644
--- a/app/controllers/auth/sessions_controller.rb
+++ b/app/controllers/auth/sessions_controller.rb
@@ -12,13 +12,13 @@ class Auth::SessionsController < Devise::SessionsController
   def create
     super do |resource|
       remember_me(resource)
-      flash[:notice] = nil
+      flash.delete(:notice)
     end
   end
 
   def destroy
     super
-    flash[:notice] = nil
+    flash.delete(:notice)
   end
 
   protected