From 3e5f5f2a48a39abb2e558b2375d75dcf4a2c8acc Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sun, 4 Apr 2010 11:12:19 -0700 Subject: Revert "Pass in the request as an optional second parameter to redirect" Was not tested. This reverts commit a8c3c71af161e7d4263ad489ca2f6601bc02a9bb. --- actionpack/lib/action_dispatch/routing/mapper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index e64f5cddad..ffa178345b 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -243,7 +243,7 @@ module ActionDispatch lambda do |env| req = Request.new(env) - uri = URI.parse(path_proc.call(req.symbolized_path_parameters, req)) + uri = URI.parse(path_proc.call(req.symbolized_path_parameters)) uri.scheme ||= req.scheme uri.host ||= req.host uri.port ||= req.port unless req.port == 80 -- cgit v1.2.3