1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Leave escaping up to Journey

This commit is contained in:
Jeremy Kemper 2011-10-13 21:40:42 -07:00
parent 45ced7e1be
commit ec37160664

View file

@ -394,10 +394,9 @@ module ActionDispatch
if name == :controller if name == :controller
value value
elsif value.is_a?(Array) elsif value.is_a?(Array)
value.map { |v| Journey::Router::Utils.escape_uri(v.to_param) }.join('/') value.map { |v| v.to_param }.join('/')
else elsif param = value.to_param
return nil unless param = value.to_param param
param.split('/').map { |v| Journey::Router::Utils.escape_uri(v) }.join("/")
end end
end end