diff --git a/actionpack/lib/action_dispatch/routing.rb b/actionpack/lib/action_dispatch/routing.rb index 1e005d25f7..f42e3a79c0 100644 --- a/actionpack/lib/action_dispatch/routing.rb +++ b/actionpack/lib/action_dispatch/routing.rb @@ -250,7 +250,9 @@ module ActionDispatch autoload :Mapper autoload :RouteSet - autoload :RoutesProxy + eager_autoload do + autoload :RoutesProxy + end autoload :UrlFor autoload :PolymorphicRoutes