Skip to content

Commit

Permalink
Make sure Rails.autoloaders is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
knu committed Oct 28, 2024
1 parent 8e9baa4 commit 32e7d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/huginn_agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def require!
require path
end
agent_paths.each do |path|
if Rails.autoloaders.zeitwerk_enabled?
if defined?(::Rails.autoloaders) && ::Rails.autoloaders.zeitwerk_enabled?
setup_zeitwerk_loader path
else
require_dependency path
Expand Down

0 comments on commit 32e7d8c

Please sign in to comment.