Skip to content

Commit 0a37883

Browse files
committed
Rails 7.1: configure autoload option
1 parent 171a33d commit 0a37883

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

config/application.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ class Application < Rails::Application
2424
# Initialize configuration defaults for originally generated Rails version.
2525
config.load_defaults 7.0
2626

27+
config.add_autoload_paths_to_load_path = false
28+
29+
2730
config.autoload_lib(ignore: %w(assets tasks))
2831

2932
# Configuration for the application, engines, and railties goes here.

config/initializers/new_framework_defaults_7_1.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# of the bootsnap cache if you use it.
1818
#
1919
# To set this configuration, add the following line to `config/application.rb` (NOT this file):
20-
# config.add_autoload_paths_to_load_path = false
20+
# config.add_autoload_paths_to_load_path = false
2121

2222
###
2323
# Remove the default X-Download-Options headers since it is used only by Internet Explorer.

0 commit comments

Comments
 (0)