Browse files

routing prefix slash replacement is no longer necessary

  • Loading branch information...
1 parent 88ba1fb commit ff3ab8a25f623d4ceb3ea189090879dc67693cb5 @senny senny committed Nov 4, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 actionpack/lib/action_dispatch/routing/mapper.rb
View
4 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -491,9 +491,7 @@ def define_generate_prefix(app, name)
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

0 comments on commit ff3ab8a

Please sign in to comment.