Skip to content

Commit

Permalink
Update readme for enable_reloading setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiculescu authored Dec 5, 2022
1 parent b01b769 commit 2eec2ca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2eec2ca

Please sign in to comment.