diff options
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index 2380502e1f..c6e25dfbcc 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -216,12 +216,11 @@ module ActionDispatch t.url_for(handle_positional_args(t, args, @options, @segment_keys)) end - def handle_positional_args(t, args, options, segment_keys) + def handle_positional_args(t, args, options, keys) inner_options = args.extract_options! result = options.dup if args.size > 0 - keys = segment_keys if args.size < keys.size - 1 # take format into account keys -= t.url_options.keys if t.respond_to?(:url_options) keys -= options.keys |