Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change parameter name for positional args

  • Loading branch information...
commit 0cabcf924aac0f3dcda046659223672316047cc2 1 parent cc00239
@tenderlove tenderlove authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  actionpack/lib/action_dispatch/routing/route_set.rb
View
3  actionpack/lib/action_dispatch/routing/route_set.rb
@@ -216,12 +216,11 @@ def call(t, args)
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
Please sign in to comment.
Something went wrong with that request. Please try again.