diff options
author | unarist <m.unarist@gmail.com> | 2017-05-27 20:04:28 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-27 13:04:28 +0200 |
commit | ecef03bb15ed3d82a48b9efdb6e8811e1922339e (patch) | |
tree | 259bbe0930d7323c20f1678b47c080724bb33628 | |
parent | 9642601126541347cbf6f49105ba7254e0ab234a (diff) |
Fix empty flash message on the settings page (#3345)
-rw-r--r-- | app/controllers/auth/sessions_controller.rb | 4 |
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 |