code/prototype/vendor/bundle/ruby/2.3.0/gems/devise-4.4.3/lib/devise/controllers/sign_in_out.rb
# Return true if the given scope is signed in session. If no scope given, return
# true if any scope is signed in. This will run authentication hooks, which may
# cause exceptions to be thrown from this method; if you simply want to check
# if a scope has already previously been authenticated without running
# authentication hooks, you can directly call `warden.authenticated?(scope: scope)`
Return true if the given scope is signed in session. If no scope given, return
true if any scope is signed in. This will run authentication hooks, which may
cause exceptions to be thrown from this method; if you simply want to check
if a scope has already previously been authenticated without running
authentication hooks, you can directly call `warden.authenticated?(scope: scope)`
Return true if the given scope is signed in session . If no scope given return true if any scope is signed in . This will run authentication hooks which may cause exceptions to be thrown from this method ; if you simply want to check if a scope has already previously been authenticated without running authentication hooks you can directly call ` warden . authenticated? ( scope : scope ) `
def signed_in?(scope=nil)
        [scope || Devise.mappings.keys].flatten.any? do |_scope|
          warden.authenticate?(scope: _scope)
        end
      end
def signed_in? ( scope = nil ) [ scope || Devise . mappings . keys ] . flatten . any? do | _scope | warden . authenticate? ( scope : _scope ) end end
Return true if the given scope is signed in session.
Return true if the given scope is signed in session .
scope
<not_specific>