title: How to get bearer token passed through header in rails?
body: <p>In my rails application I'm able to get the Token <code>Authorization: Token token='aUthEnTicAtIonTokeN'</code> passed in header of request with</p>
  
  <pre><code>authenticate_with_http_token do |token, options|
   @auth_token = token
  end
  </code></pre>
  
  <p>but when I pass token as <code>Authorization: Bearer token='aUthEnTicAtIonTokeN'</code> getting token as nil above method.</p>
  
  <p>how can i get bearer token passed through header in rails application?</p>