Method: ActionController::HttpAuthentication::Basic#auth_scheme

Defined in:
actionpack/lib/action_controller/metal/http_authentication.rb

#auth_scheme(request) ⇒ Object



126
127
128
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 126

def auth_scheme(request)
  request.authorization.to_s.split(" ", 2).first
end