Rails server doesn't see code changes and reload files
Add the following to config/environments/development.rb
#config.file_watcher = ActiveSupport::EventedFileUpdateChecker
config.file_watcher = ActiveSupport::FileUpdateChecker
FileUpdateChecker
will detect by polling the change of the file.
I've solved my problem adding below line to the development.rb
file.
config.reload_classes_only_on_change = false