diff options
Diffstat (limited to 'actionpack/lib/action_controller/integration.rb')
-rw-r--r-- | actionpack/lib/action_controller/integration.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/integration.rb b/actionpack/lib/action_controller/integration.rb index 2bff3a7ae0..80602489b9 100644 --- a/actionpack/lib/action_controller/integration.rb +++ b/actionpack/lib/action_controller/integration.rb @@ -74,6 +74,10 @@ module ActionController unless defined? @named_routes_configured # install the named routes in this session instance. + # But we have to disable the optimisation code so that we can + # generate routes without @request being initialized + Routing.optimise_named_routes=false + Routing::Routes.reload! klass = class<<self; self; end Routing::Routes.install_helpers(klass) |