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:
parent
45ced7e1be
commit
ec37160664
1 changed files with 3 additions and 4 deletions
|
@ -394,10 +394,9 @@ module ActionDispatch
|
|||
if name == :controller
|
||||
value
|
||||
elsif value.is_a?(Array)
|
||||
value.map { |v| Journey::Router::Utils.escape_uri(v.to_param) }.join('/')
|
||||
else
|
||||
return nil unless param = value.to_param
|
||||
param.split('/').map { |v| Journey::Router::Utils.escape_uri(v) }.join("/")
|
||||
value.map { |v| v.to_param }.join('/')
|
||||
elsif param = value.to_param
|
||||
param
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue