vendor/bundle/gems/warden-1.2.3/lib/warden/proxy.rb
# Check to see if there is an authenticated user for the given scope.
# This brings the user from the session, but does not run strategies before doing so.
# If you want strategies to be run, please check authenticate?.
#
# Parameters:
#   scope - the scope to check for authentication. Defaults to default_scope
#
# Example:
#   env['warden'].authenticated?(:admin)
#
# :api: public
Check to see if there is an authenticated user for the given scope.
This brings the user from the session, but does not run strategies before doing so.
If you want strategies to be run, please check authenticate?.

the scope to check for authentication.

env['warden'].authenticated?(:admin)

:api: public
Check to see if there is an authenticated user for the given scope . This brings the user from the session but does not run strategies before doing so . If you want strategies to be run please check authenticate? . the scope to check for authentication . env [ ' warden ' ] . authenticated? ( : admin ) : api : public
def authenticated?(scope = @config.default_scope)
      result = !!user(scope)
      yield if block_given? && result
      result
    end
def authenticated? ( scope = @config . default_scope ) result = ! ! user ( scope ) yield if block_given? && result result end
Check to see if there is an authenticated user for the given scope.
Check to see if there is an authenticated user for the given scope .
scope
<not_specific>
default_scope
<not_specific>