-
Notifications
You must be signed in to change notification settings - Fork 898
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22801 from jrafanie/there_can_be_only_one_autoloa…
…der_zeitwerk There can be only one autoloader: zeitwerk (cherry picked from commit 7a3c4a6)
- Loading branch information
Showing
3 changed files
with
10 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
if Rails.application.config.autoloader == :zeitwerk && Rails.autoloaders.main | ||
if ENV['DEBUG_MANAGEIQ_ZEITWERK'].present? | ||
Zeitwerk::Loader.default_logger = method(:puts) | ||
Rails.autoloaders.main.logger = Logger.new($stdout) | ||
end | ||
|
||
# These specific directories are for code organization, not namespacing: | ||
# TODO: these should be either renamed with good names, the intermediate directory removed | ||
# and/or both. | ||
Rails.autoloaders.main.collapse(Rails.root.join("lib/manageiq/reporting/charting")) | ||
Rails.autoloaders.main.collapse(Rails.root.join("lib/ansible/runner/credential")) | ||
Rails.autoloaders.main.collapse(Rails.root.join("lib/pdf_generator")) | ||
if ENV['DEBUG_MANAGEIQ_ZEITWERK'].present? | ||
Zeitwerk::Loader.default_logger = method(:puts) | ||
Rails.autoloaders.main.logger = Logger.new($stdout) | ||
end | ||
|
||
# These specific directories are for code organization, not namespacing: | ||
# TODO: these should be either renamed with good names, the intermediate directory removed | ||
# and/or both. | ||
Rails.autoloaders.main.collapse(Rails.root.join("lib/manageiq/reporting/charting")) | ||
Rails.autoloaders.main.collapse(Rails.root.join("lib/ansible/runner/credential")) | ||
Rails.autoloaders.main.collapse(Rails.root.join("lib/pdf_generator")) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.