Skip to content

Commit 4cc69d7

Browse files
committed
Document upgrading instructions for Spring
1 parent 7ffe204 commit 4cc69d7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

guides/source/upgrading_ruby_on_rails.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ To allow you to upgrade to new defaults one by one, the update task has created
7878
Upgrading from Rails 6.1 to Rails 7.0
7979
-------------------------------------
8080

81+
### Spring
82+
83+
If your application uses Spring, it needs to be upgraded to at least version 2.2.0. Otherwise you'll get
84+
85+
```
86+
undefined method `mechanism=' for ActiveSupport::Dependencies:Module
87+
```
88+
89+
Also, make sure `config.cache_classes` is set to `false` in `config/environments/test.rb`.
90+
8191
### Applications need to run in `zeitwerk` mode
8292

8393
Applications still running in `classic` mode have to switch to `zeitwerk` mode. Please check the [upgrading guide for Rails 6.0](https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#autoloading) for details.

0 commit comments

Comments
 (0)