diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-06 00:42:58 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-06 00:42:58 +0100 |
commit | 10389a4c29c5b17083a7fa43b97334b4ea811ec8 (patch) | |
tree | dc783fad23502d2b7270dfb7e10f7246dc559d1f /actionpack/lib/action_dispatch/routing | |
parent | 0cf190001e9b03f40f615736779eedb30a1f2b7a (diff) | |
download | rails-10389a4c29c5b17083a7fa43b97334b4ea811ec8.tar.gz rails-10389a4c29c5b17083a7fa43b97334b4ea811ec8.tar.bz2 rails-10389a4c29c5b17083a7fa43b97334b4ea811ec8.zip |
Ruby 1.9.1 requires hash given to foormat to contain symbols.
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 2a25a8c4ea..9c14305ba9 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -205,7 +205,7 @@ module ActionDispatch lambda do |env| req = Request.new(env) - uri = URI.parse(path_proc.call(req.params)) + uri = URI.parse(path_proc.call(req.params.symbolize_keys)) uri.scheme ||= req.scheme uri.host ||= req.host uri.port ||= req.port unless req.port == 80 |