-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #37451 - Support Zeitwerk loader
- Loading branch information
1 parent
bf79426
commit 87fa094
Showing
14 changed files
with
19 additions
and
25 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
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
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
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
File renamed without changes.
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
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
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
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
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 |
---|---|---|
|
@@ -11,16 +11,10 @@ module ForemanAnsible | |
class Engine < ::Rails::Engine | ||
engine_name 'foreman_ansible' | ||
|
||
config.autoload_paths += Dir["#{config.root}/app/controllers/concerns"] | ||
config.autoload_paths += Dir["#{config.root}/app/models"] | ||
config.autoload_paths += Dir["#{config.root}/app/helpers"] | ||
config.autoload_paths += Dir["#{config.root}/app/overrides"] | ||
config.autoload_paths += Dir["#{config.root}/app/services"] | ||
config.autoload_paths += Dir["#{config.root}/app/views"] | ||
config.autoload_paths += Dir["#{config.root}/app/lib"] | ||
|
||
initializer 'foreman_ansible.register_plugin', :before => :finisher_hook do | ||
require 'foreman_ansible/register' | ||
initializer 'foreman_ansible.register_plugin', :before => :finisher_hook do |app| | ||
app.reloader.to_prepare do | ||
require 'foreman_ansible/register' | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ofedoren
Author
Member
|
||
end | ||
end | ||
|
||
initializer('foreman_ansible.require_dynflow', | ||
|
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
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
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
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
Does it work like this? The guide recommends to remove
require
calls. https://guides.rubyonrails.org/classic_to_zeitwerk_howto.html#delete-any-require-calls