aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-01-25 11:06:50 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2013-01-30 10:24:58 -0800
commit0cabcf924aac0f3dcda046659223672316047cc2 (patch)
tree7f1669e3afb3a92fc8cf22ca822a71dcb3a8ff7a /actionpack/lib/action_dispatch/routing
parentcc00239151ac9269000dd98aa5c03cdc5291d9a4 (diff)
downloadrails-0cabcf924aac0f3dcda046659223672316047cc2.tar.gz
rails-0cabcf924aac0f3dcda046659223672316047cc2.tar.bz2
rails-0cabcf924aac0f3dcda046659223672316047cc2.zip
change parameter name for positional args
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb3
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