title: Ruby on rails - rack middleware exclude - is it possible?
body: <p>I am trying a rack middleware, to do authentication in a separate layer.
  The problem is, all request goes through this layer. I don't want the asset request like css, javascript to go through authentication middleware., 
  I also don't want logout flow to go through this., </p>
  
  <p>In application.rb</p>
  
  <blockquote>
  <pre><code>config.middleware.use AuthClient::MyFilterClass
  </code></pre>
  </blockquote>
  
  <p>I am expecting something like </p>
  
  <blockquote>
  <pre><code>config.middleware.use AuthClient::MyFilterClass, :exclude =&gt; [:logout,'*/assets/*']
  </code></pre>
  </blockquote>
  
  <p>Is there any way to exclude custom path / actions from middleware ?</p>