diff options
author | Yves Senn <yves.senn@gmail.com> | 2012-11-04 15:01:02 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2012-11-04 15:15:29 +0100 |
commit | ff3ab8a25f623d4ceb3ea189090879dc67693cb5 (patch) | |
tree | ccf6a2244c4b4c40b68f6fa8c266370c451c741a /actionpack/lib/action_dispatch/routing | |
parent | 88ba1fb03e24411f38c9dc8c776f17bcbd28dcdf (diff) | |
download | rails-ff3ab8a25f623d4ceb3ea189090879dc67693cb5.tar.gz rails-ff3ab8a25f623d4ceb3ea189090879dc67693cb5.tar.bz2 rails-ff3ab8a25f623d4ceb3ea189090879dc67693cb5.zip |
routing prefix slash replacement is no longer necessary
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 045299281c..2311afc6c1 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -491,9 +491,7 @@ module ActionDispatch prefix_options = options.slice(*_route.segment_keys) # we must actually delete prefix segment keys to avoid passing them to next url_for _route.segment_keys.each { |k| options.delete(k) } - prefix = _routes.url_helpers.send("#{name}_path", prefix_options) - prefix = '' if prefix == '/' - prefix + _routes.url_helpers.send("#{name}_path", prefix_options) end end end |