lib/rails/generators/rails/app/templates/config/application.rb.tt in railties-7.1.0.beta1 vs lib/rails/generators/rails/app/templates/config/application.rb.tt in railties-7.1.0.rc1
- old
+ new
@@ -13,10 +13,12 @@
config.load_defaults <%= build(:config_target_version) %>
<%- else -%>
config.load_defaults Rails::VERSION::STRING.to_f
<%- end -%>
- # Please, see https://guides.rubyonrails.org/autoloading_and_reloading_constants.html#config-autoload-lib-ignore.
+ # Please, add to the `ignore` list any other `lib` subdirectories that do
+ # not contain `.rb` files, or that should not be reloaded or eager loaded.
+ # Common ones are `templates`, `generators`, or `middleware`, for example.
config.autoload_lib(ignore: %w(assets tasks))
# Configuration for the application, engines, and railties goes here.
#
# These settings can be overridden in specific environments using the files