mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Adding the api changes on sign_out_all_scopes
This commit is contained in:
parent
9e7ab38bce
commit
584d5d1a81
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ module Devise
|
|||
# Sign out all active users or scopes. This helper is useful for signing out all roles
|
||||
# in one click. This signs out ALL scopes in warden.
|
||||
def sign_out_all_scopes
|
||||
Devise.mappings.keys.each { |s| warden.user(s) }
|
||||
Devise.mappings.keys.each { |s| warden.user(:scope => s, :run_callbacks => false) }
|
||||
warden.raw_session.inspect
|
||||
warden.logout
|
||||
expire_devise_cached_variables!
|
||||
|
|
Loading…
Reference in a new issue