From 798a14a6388ac525109e550d72bba0b1118e5e2e Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 5 Mar 2015 13:11:53 -0800 Subject: pass a config to the route set This way we can get the relative_url_root from the application without setting another global value --- railties/lib/rails/engine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index fd37fd0457..83cee28fa3 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -528,7 +528,7 @@ module Rails # Defines the routes for this engine. If a block is given to # routes, it is appended to the engine. def routes - @routes ||= ActionDispatch::Routing::RouteSet.new + @routes ||= ActionDispatch::Routing::RouteSet.new_with_config(config) @routes.append(&Proc.new) if block_given? @routes end -- cgit v1.2.3