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

Remove warning with shadowing variable

This commit is contained in:
Carlos Antonio da Silva 2012-05-15 15:27:46 -03:00
parent 8bcb05d6c0
commit ab48435211

View file

@ -88,8 +88,8 @@ module Devise
# Return true if the given scope is signed in session. If no scope given, return
# true if any scope is signed in. Does not run authentication hooks.
def signed_in?(scope=nil)
[ scope || Devise.mappings.keys ].flatten.any? do |scope|
warden.authenticate?(:scope => scope)
[ scope || Devise.mappings.keys ].flatten.any? do |_scope|
warden.authenticate?(:scope => _scope)
end
end
@ -155,7 +155,7 @@ module Devise
warden.raw_session.inspect
warden.logout
expire_devise_cached_variables!
users.any?
end