Commit 5d2fc14
committed
Only reload if cache_classes is disabled and reload_classes_only_on_change disabled
https://guides.rubyonrails.org/configuring.html#config-reload-classes-only-on-change
states:
>>>
3.2.30 config.reload_classes_only_on_change
Enables or disables reloading of classes only when tracked files
change. By default tracks everything on autoload paths and is set to
true. If config.cache_classes is true, this option is ignored.
>>>
It was surprising to us that even though `cache_classes` were set to
true that factory_bot_rails still instantiated file watchers.1 parent a0adccc commit 5d2fc14
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments