Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

the :only_path option is applied by the time the helper is called

  • Loading branch information...
commit ca9fd76c2e61574ca96834674599085c8c9db2b4 1 parent 566f25b
Aaron Patterson tenderlove authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 actionpack/lib/action_dispatch/routing/route_set.rb
5 actionpack/lib/action_dispatch/routing/route_set.rb
View
@@ -225,10 +225,7 @@ def initialize(route, options)
end
def call(t, args)
- options = handle_positional_args(t, args, @options, @segment_keys)
- hash = {
- :only_path => options[:host].nil?
- }.merge!(options)
+ hash = handle_positional_args(t, args, @options, @segment_keys)
hash.reverse_merge!(t.url_options)
t._routes.url_for(hash)
end
Please sign in to comment.
Something went wrong with that request. Please try again.