title: Rails 5: Autoloading with custom folders not working
body: <p>I have this class:</p>
  
  <pre><code># app/events/new_request.rb
  class Events::NewRequest
  end
  </code></pre>
  
  <p>And I added that folder to the autoload:</p>
  
  <pre><code># config/application.rb
  config.autoload_paths += %W( events/ )
  </code></pre>
  
  <p>And when running <code>rails c</code>:</p>
  
  <pre><code>&gt; Events::NewRequest
  NameError: uninitialized constant Events
  </code></pre>
  
  <p>The thing is that if I don't use the namespace "Events" when defining the class, it autoloads the class successfully. </p>