From 1ce74b009f0a5bbb9e5f5fe1c037c77437fd0be9 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 17 Aug 2015 16:07:39 -0700 Subject: introduce an alternate constructor for Route objects I want to change the real constructor to take a particular parameter for matching the request method --- actionpack/lib/action_dispatch/routing/mapper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_dispatch/routing/mapper.rb') diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 2c9cab605f..e964bf59e0 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -144,7 +144,7 @@ module ActionDispatch end def make_route(name, precedence) - route = Journey::Route.new(name, + route = Journey::Route.build(name, application, path, conditions, -- cgit v1.2.3