File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
railties/lib/rails/generators/rails/app/templates/config/environments Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ Rails.application.configure do
11
11
# Turn false under Spring and add config.action_view.cache_template_loading = true
12
12
config.cache_classes = true
13
13
14
- # Do not eager load code on boot. This avoids loading your whole application
15
- # just for the purpose of running a single test. If you are using a tool that
16
- # preloads Rails for running tests, you may have to set it to true .
17
- config.eager_load = false
14
+ # Eager loading loads your whole application. When running a single test locally,
15
+ # this probably isn't necessary. It's a good idea to do in a continuous integration
16
+ # system, or in some way before deploying your code .
17
+ config.eager_load = ENV["CI"].present?
18
18
19
19
# Configure public file server for tests with Cache-Control for performance.
20
20
config.public_file_server.enabled = true
You can’t perform that action at this time.
0 commit comments