vendor/cache/ruby/2.3.0/gems/warden-github-rails-1.3.0/lib/warden/github/rails/routes.rb
# The routes will only be visible to authenticated GitHub users. When
# not authenticated, it does not initiate the OAuth flow.
#
# Team and organization memberships can be checked by specifying a hash
# such as `team: 'foobar'` or `org: 'my_company'`.
The routes will only be visible to authenticated GitHub users. When
not authenticated, it does not initiate the OAuth flow.

Team and organization memberships can be checked by specifying a hash
such as `team: 'foobar'` or `org: 'my_company'`.
The routes will only be visible to authenticated GitHub users . When not authenticated it does not initiate the OAuth flow . Team and organization memberships can be checked by specifying a hash such as ` team : ' foobar ' ` or ` org : ' my_company ' ` .
def github_authenticated(scope=nil, options={}, &routes_block)
          github_constraint(scope, options, routes_block) do |warden, scope|
            warden.authenticated?(scope: scope)
          end
        end
def github_authenticated ( scope = nil , options = { } , & routes_block ) github_constraint ( scope , options , routes_block ) do | warden , scope | warden . authenticated? ( scope : scope ) end end
The routes will only be visible to authenticated GitHub users.
The routes will only be visible to authenticated GitHub users .
scope
<not_specific>
options
<not_specific>
routes_block
<not_specific>