Permalink
Browse files

Adding the api changes on sign_out_all_scopes

  • Loading branch information...
1 parent 9e7ab38 commit 584d5d1a819bfaafdd9dd194232b07ac179d6546 Rodrigo Flores committed Feb 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/devise/controllers/helpers.rb
@@ -145,7 +145,7 @@ def sign_out(resource_or_scope=nil)
# 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!

0 comments on commit 584d5d1

Please sign in to comment.