Skip to content

Commit 2eec2ca

Browse files
authored
Update readme for enable_reloading setting
ref: rails/rails#46648
1 parent b01b769 commit 2eec2ca

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,14 @@ Rails directory.
7171
Spring reloads application code, and therefore needs the application to have
7272
reloading enabled.
7373

74-
Please, make sure `config.cache_classes` is `false` in the environments that
74+
Ensure that `config.enable_reloading` is `true` in the environments that
7575
Spring manages. That setting is typically configured in
76-
`config/environments/*.rb`. In particular, make sure it is `false` for the
76+
`config/environments/*.rb`. In particular, make sure it is `true` for the
7777
`test` environment.
7878

79+
Note: in versions of Rails before 7, the setting is called `cache_classes`,
80+
and it needs to be `false` for Spring to work.
81+
7982
### Usage
8083

8184
For this walkthrough I've generated a new Rails application, and run

0 commit comments

Comments
 (0)