Skip to content

Commit 54c7357

Browse files
authored
Merge pull request rails#44612 from Shopify/eager-load-routes-proxy
Eager load ActionDispatch::Routing::RoutesProxy
2 parents 9feaf7e + 4b823e1 commit 54c7357

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

actionpack/lib/action_dispatch/routing.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ module Routing
250250

251251
autoload :Mapper
252252
autoload :RouteSet
253-
autoload :RoutesProxy
253+
eager_autoload do
254+
autoload :RoutesProxy
255+
end
254256
autoload :UrlFor
255257
autoload :PolymorphicRoutes
256258

0 commit comments

Comments
 (0)