]> cat aescling's git repositories - mastodon.git/commitdiff
Fix empty flash message on the settings page (#3345)
authorunarist <m.unarist@gmail.com>
Sat, 27 May 2017 11:04:28 +0000 (20:04 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 27 May 2017 11:04:28 +0000 (13:04 +0200)
app/controllers/auth/sessions_controller.rb

index f399c6f492c7c280a9716ed5217a2089077097df..79e3da5f9f3d78eea8e678b4784d70529d5b72d9 100644 (file)
@@ -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