Skip to content

Commit f75f841

Browse files
committed
Better enable_reloading comment in environments/test.rb
In the process of removing spring, rails#42997 added a comment for `config.cache_classes`. Through that PR and subsequent revisions the comment has gotten a bit confusing - it doesn't explain what the `enable_reloading` setting does, just how to revert it if you are using Spring (which isn't included in new apps anymore). So this PR just updates the template with a comment about what the setting does. If someone really wants to use Spring there's other places to learn about how to change this setting, as that's not a default path we're encouraging anymore.
1 parent 7069d15 commit f75f841

File tree

1 file changed

+1
-1
lines changed
  • railties/lib/rails/generators/rails/app/templates/config/environments

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require "active_support/core_ext/integer/time"
88
Rails.application.configure do
99
# Settings specified here will take precedence over those in config/application.rb.
1010

11-
# Turn true under Spring and add config.action_view.cache_template_loading = true.
11+
# Code is not reloaded while tests run.
1212
config.enable_reloading = false
1313

1414
# Eager loading loads your entire application. When running a single test locally,

0 commit comments

Comments
 (0)