Path: | lib/devise/hooks/forgetable.rb |
Last Update: | Mon Dec 05 14:13:08 +0000 2011 |
Before logout hook to forget the user in the given scope, if it responds to forget_me! Also clear remember token to ensure the user won‘t be remembered again. Notice that we forget the user unless the record is not persisted. This avoids forgetting deleted users.