Project

General

Profile

Feature #32938 » 0008-Change-autoload-mode-from-classic-to-zeitwerk.patch

Mizuki ISHIKAWA, 2021-10-19 08:50

View differences:

config/application.rb
# -- all .rb files in that directory are automatically loaded.
# Custom directories with classes and modules you want to be autoloadable.
config.autoload_paths += %W(#{config.root}/lib)
config.autoloader = :zeitwerk
config.autoload_paths += %W(#{config.root}/lib/autoloads)
config.eager_load_paths += %W(#{config.root}/lib/autoloads)
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named.
(7-7/16)