Any? instead of !empty?

This commit is contained in:
Rodrigo Flores
2012-02-16 15:22:10 -02:00
parent 5607f7a2c8
commit 7739c495e7

View File

@@ -155,8 +155,7 @@ module Devise
warden.logout
expire_devise_cached_variables!
return false if users.compact.empty? # No need to log out if there isn't any logged in users
true
users.any?
end
# Returns and delete the url stored in the session for the given scope. Useful