diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-04-04 11:12:19 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-04-04 11:12:19 -0700 |
commit | 3e5f5f2a48a39abb2e558b2375d75dcf4a2c8acc (patch) | |
tree | d0392b076f5e9604239c3386a53de950d7d50328 /actionpack/lib/action_dispatch/routing | |
parent | e3959970e1f669c6ecf79d645b5e4f9d7ed2a4ec (diff) | |
download | rails-3e5f5f2a48a39abb2e558b2375d75dcf4a2c8acc.tar.gz rails-3e5f5f2a48a39abb2e558b2375d75dcf4a2c8acc.tar.bz2 rails-3e5f5f2a48a39abb2e558b2375d75dcf4a2c8acc.zip |
Revert "Pass in the request as an optional second parameter to redirect"
Was not tested.
This reverts commit a8c3c71af161e7d4263ad489ca2f6601bc02a9bb.
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |