title: multiple routes file rails 5
body: <p>I have the following code</p>
  <p>application.rb</p>
  <pre><code>config.autoload_paths += %W(#{config.root}/config/routes)
  </code></pre>
  <p>routes.rb</p>
  <pre><code>Rails.application.routes.draw do
    root to: 'summary#index'
  
    extend General
  end
  </code></pre>
  <p>/config/routes/general.rb</p>
  <pre><code>module General
    def self.extended(router)
      router.instance_exec do
  
        # devise routes
        devise_for :users, controllers: { sessions: 'users/sessions' }
      end
    end
  end
  </code></pre>
  <p>I get <code>uninitialized constant General</code> when loading the app.</p>
  <p>I''m using Ruby 2.2.6 and Rails 5.0.2</p>