Skip to content

Commit

Permalink
Merge pull request #6990 from alphagov/fix-date-autoload
Browse files Browse the repository at this point in the history
Force autoload of lib for Zeitwerk
  • Loading branch information
Tetrino authored Dec 6, 2024
2 parents 68708a3 + d8e721d commit d58df17
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 d58df17

Please sign in to comment.