Fix eager loading of ActionDispatch::Routing

Followup: https://github.com/rails/rails/pull/44612

As rightfully pointed out by @rafaelfranca
This commit is contained in:
Jean Boussier 2022-03-04 17:34:52 +01:00
parent 54c7357769
commit 490f2b72cc
1 changed files with 5 additions and 0 deletions

View File

@ -109,6 +109,11 @@ module ActionDispatch
end
autoload :SystemTestCase, "action_dispatch/system_test_case"
def eager_load!
super
Routing.eager_load!
end
end
autoload :Mime, "action_dispatch/http/mime_type"