1
0
Fork 0
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:
Rodrigo Flores 2012-02-15 22:31:56 -02:00
parent 9e7ab38bce
commit 584d5d1a81

View file

@ -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!