aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-05-13 10:51:15 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-05-13 10:51:15 -0700
commitca9fd76c2e61574ca96834674599085c8c9db2b4 (patch)
tree0a4185e978786cfe45d46139ca99f193b01c5481
parent566f25beeee1837099451d4bc314301d72c61503 (diff)
downloadrails-ca9fd76c2e61574ca96834674599085c8c9db2b4.tar.gz
rails-ca9fd76c2e61574ca96834674599085c8c9db2b4.tar.bz2
rails-ca9fd76c2e61574ca96834674599085c8c9db2b4.zip
the :only_path option is applied by the time the helper is called
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb5
1 files changed, 1 insertions, 4 deletions
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