Skip to content

Commit

Permalink
Force autoload of lib for Zeitwerk
Browse files Browse the repository at this point in the history
Zeitwerk requries lib to be autoloaded early so it can be properly
initialised. Previously this had been set to eager-load erroneously.
  • Loading branch information
Tetrino committed Dec 6, 2024
1 parent e948cc9 commit d8e721d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Application < Rails::Application
config.action_dispatch.ignore_accept_header = true

# Force lib autoload, which was removed by Rails 3.0 and enforced by Zeitwerk
config.eager_load_paths << Rails.root.join("lib")
config.autoload_paths << Rails.root.join("lib")

# Allow requests for all domains e.g. <app>.dev.gov.uk
config.hosts.clear
Expand Down

0 comments on commit d8e721d

Please sign in to comment.