Last Updated: February 25, 2016
·
339
· dcdieci

When rails does not reload any longer

I stumbled upon the weird behavior of my rails4 app that changes I made were not reload e.g. on page refresh.

I recently installed the spring gem which made my rpsec tests incredibly fast. So I assumed it might be a side effect that files are not getting reloaded in the server but this gem should also detect changes once you edit a file.

Anyhow I stumbled upon another config value in rails

reload_classes_only_on_change 

in finisher.rb
https://github.com/rails/rails/blob/master/railties/lib/rails/application/finisher.rb

After changing this value to false in development.rb all changes got reloaded on page refresh.

config.reload_classes_only_on_change   = false