Skip to content

Commit

Permalink
Routing Mapper with % interpolation on Ruby 1.9.1 fixed [#3837 status…
Browse files Browse the repository at this point in the history
…:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
Santiago Pastorino and José Ignacio Costa authored and josevalim committed Feb 2, 2010
1 parent 95eadb3 commit afdf524
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions actionpack/lib/action_dispatch/routing/mapper.rb
Expand Up @@ -207,8 +207,7 @@ def redirect(*args, &block)

lambda do |env|
req = Request.new(env)

uri = URI.parse(path_proc.call(req.params.symbolize_keys))
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
Expand Down

0 comments on commit afdf524

Please sign in to comment.