title: Why doesn't Rails autoload classes from app/services?
body: <p>I'm working on a Rails 4.2 app and have just added <code>app/services/fetch_artists.rb</code> to the structure. Inside this file, I have defined a <code>class FetchArtists; end</code>.</p>
  
  <p>When trying to run <code>rails r 'FetchArtists'</code> it gives me a <code>NameError: uninitialized constant FetchArtists</code>.</p>
  
  <p>I've tried looking at <code>ActiveSupport::Dependencies.autoload_paths</code> and indeed, <code>app/services</code> is not there:</p>
  
  <pre><code>/.../app/assets
  /.../app/controllers
  /.../app/helpers
  /.../app/jobs
  /.../app/mailers
  /.../app/models
  /.../app/controllers/concerns
  /.../app/models/concerns
  /.../spec/mailers/previews
  </code></pre>
  
  <p>My question is, why isn't this folder automatically loaded, and what should I do for it to be?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Very strange, after repeatedly running the above command with <code>rails runner</code>, the new folder appears on the autoload paths. I have no idea why this happened with such a lag.</p>
  
  <p>Someone suggested this may deal with <code>spring</code>. I would like to hear more on this, since it can possibly help many others in this situation too.</p>