mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Eager load ActionDispatch::Routing::RoutesProxy
Otherwise it might only be loaded once `url_for` is called: ``` from bundler/gems/rails-5772ecd7d568/actionpack/lib/action_dispatch/routing/routes_proxy.rb:7:in `<module:Routing>' from bundler/gems/rails-5772ecd7d568/actionpack/lib/action_dispatch/routing/routes_proxy.rb:6:in `<module:ActionDispatch>' from bundler/gems/rails-5772ecd7d568/actionpack/lib/action_dispatch/routing/routes_proxy.rb:5:in `<main>' from gems/bootsnap-1.10.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require' from gems/bootsnap-1.10.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require' from gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require' from bundler/gems/rails-5772ecd7d568/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb:214:in `polymorphic_method' from bundler/gems/rails-5772ecd7d568/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb:116:in `polymorphic_url' from bundler/gems/rails-5772ecd7d568/actionpack/lib/action_dispatch/routing/url_for.rb:187:in `full_url_for' from bundler/gems/rails-5772ecd7d568/actionpack/lib/action_dispatch/routing/url_for.rb:170:in `url_for' ```
This commit is contained in:
parent
9ae05215dc
commit
4b823e1a44
1 changed files with 3 additions and 1 deletions
|
@ -250,7 +250,9 @@ module ActionDispatch
|
||||||
|
|
||||||
autoload :Mapper
|
autoload :Mapper
|
||||||
autoload :RouteSet
|
autoload :RouteSet
|
||||||
|
eager_autoload do
|
||||||
autoload :RoutesProxy
|
autoload :RoutesProxy
|
||||||
|
end
|
||||||
autoload :UrlFor
|
autoload :UrlFor
|
||||||
autoload :PolymorphicRoutes
|
autoload :PolymorphicRoutes
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue