Permalink
Browse files

Leave escaping up to Journey

  • Loading branch information...
1 parent 45ced7e commit ec371606640f87289f4821f5f197709dd0ebe6f2 @jeremy jeremy committed Oct 14, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 actionpack/lib/action_dispatch/routing/route_set.rb
@@ -394,10 +394,9 @@ class Generator #:nodoc:
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

0 comments on commit ec37160

Please sign in to comment.