title: Remove Routes Specified in a Gem?
body: <p>Is there a way to remove routes specified in a gem in Rails 3? The exception logger gem specifies routes which I don't want. I need to specify constraints on the routes like so:</p>
  
  <pre><code>scope :constraints =&gt; {:subdomain =&gt; 'secure',  :protocol =&gt; 'https'} do 
      collection do
          post :query
          post :destroy_all
          get :feed
      end
  end
  </code></pre>
  
  <p>Based on the <a href="http://edgeapi.rubyonrails.org/classes/Rails/Engine.html" rel="noreferrer">Rails Engine docs</a>, I thought I could create a monkey patch and add a routes file with no routes specified to the paths["config/routes"].paths Array but the file doesn't get added to ExceptionLogger::Engine.paths["config/routes"].paths </p>
  
  <pre><code>File: config/initializers/exception_logger_hacks.rb
  
  ExceptionLogger::Engine.paths["config/routes"].paths.unshift(File.expand_path(File.join(File.dirname(__FILE__), "exception_logger_routes.rb")))
  </code></pre>
  
  <p>Am I way off base here? Maybe there is a better way of doing this?</p>