title: get value from header into model
body: <p>I am wondering is there a way get value from header directly on model. </p>
  
  <pre><code># location.rb
  class Location &lt; ActiveRecord::Base
    puts request.header['key']
  end
  </code></pre>
  
  <p>Let's pretend we have some value stored into header, into controller I use <code>request.headers['key']</code>. it worked but into model it's not</p>