Feature #32938 » 0008-Change-autoload-mode-from-classic-to-zeitwerk.patch
| 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.
|
||