app/controllers/anoubis/core/application_controller.rb
##
# Get current token based on HTTP Authorization
# @return [String] current token
Get current token based on HTTP Authorization
Get current token based on HTTP Authorization
def token
    if Rails.env.development?
      return params[:token] if params[:token]
    end
    request.env.fetch('HTTP_AUTHORIZATION', '').scan(/Bearer (.*)$/).flatten.last
  end
def token if Rails . env . development? return params [ :token ] if params [ :token ] end request . env . fetch ( 'HTTP_AUTHORIZATION' , '' ) . scan ( / Bearer (.*)$ / ) . flatten . last end
Get current token based on HTTP Authorization
Get current token based on HTTP Authorization
None
String