From 2eec2caa9b4031d095cfad1d613f9368200c1e1e Mon Sep 17 00:00:00 2001 From: Alex Ghiculescu Date: Mon, 5 Dec 2022 14:43:23 -0600 Subject: [PATCH] Update readme for `enable_reloading` setting ref: https://github.com/rails/rails/pull/46648 --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 52466c8e..4db79f6e 100644 --- a/README.md +++ b/README.md @@ -71,11 +71,14 @@ Rails directory. Spring reloads application code, and therefore needs the application to have reloading enabled. -Please, make sure `config.cache_classes` is `false` in the environments that +Ensure that `config.enable_reloading` is `true` in the environments that Spring manages. That setting is typically configured in -`config/environments/*.rb`. In particular, make sure it is `false` for the +`config/environments/*.rb`. In particular, make sure it is `true` for the `test` environment. +Note: in versions of Rails before 7, the setting is called `cache_classes`, +and it needs to be `false` for Spring to work. + ### Usage For this walkthrough I've generated a new Rails application, and run