From ca9fd76c2e61574ca96834674599085c8c9db2b4 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 13 May 2014 10:51:15 -0700 Subject: the :only_path option is applied by the time the helper is called --- actionpack/lib/action_dispatch/routing/route_set.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'actionpack/lib/action_dispatch') diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index 62928e2777..845ccb5f94 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -225,10 +225,7 @@ module ActionDispatch 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 -- cgit v1.2.3