Fix empty flash message on the settings page (#3345)

This commit is contained in:
unarist 2017-05-27 20:04:28 +09:00 committed by Eugen Rochko
parent 9642601126
commit ecef03bb15
1 changed files with 2 additions and 2 deletions

View 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