Permalink
Browse files

Any? instead of !empty?

  • Loading branch information...
1 parent 5607f7a commit 7739c495e79b07a9b1fd51c48fb71483ac2b7cf9 Rodrigo Flores committed Feb 16, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/devise/controllers/helpers.rb
@@ -155,8 +155,7 @@ def sign_out_all_scopes
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

0 comments on commit 7739c49

Please sign in to comment.