Permalink
Browse files

change parameter name for positional args

  • Loading branch information...
1 parent cc00239 commit 0cabcf924aac0f3dcda046659223672316047cc2 @tenderlove tenderlove committed Jan 25, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 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

0 comments on commit 0cabcf9

Please sign in to comment.