1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

warden.logout(*scopes) instead of warden.logout(*Devise.mappings.keys)

This commit is contained in:
Denis Lifanov 2010-06-24 21:41:24 +08:00 committed by José Valim
parent 819db39263
commit 2475faf9c7

View file

@ -71,7 +71,7 @@ module Devise
scopes = Devise.mappings.keys scopes = Devise.mappings.keys
scopes.each { |scope| warden.user(scope) } scopes.each { |scope| warden.user(scope) }
warden.raw_session.inspect warden.raw_session.inspect
warden.logout(*Devise.mappings.keys) warden.logout(*scopes)
end end
# Returns and delete the url stored in the session for the given scope. Useful # Returns and delete the url stored in the session for the given scope. Useful