aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2012-05-10 22:52:00 +0100
committerAndrew White <andyw@pixeltrix.co.uk>2012-05-10 22:52:00 +0100
commit09a48b2324207ccbf6f421e5e7caf7655f1e905a (patch)
tree44b3894414cb0bfc1ee33bf7e31e69bad8c63f91 /actionpack/lib
parente306ca3627965bf038d6b39a9480ae57bff9c18e (diff)
downloadrails-09a48b2324207ccbf6f421e5e7caf7655f1e905a.tar.gz
rails-09a48b2324207ccbf6f421e5e7caf7655f1e905a.tar.bz2
rails-09a48b2324207ccbf6f421e5e7caf7655f1e905a.zip
Don't ignore nil positional arguments for url helpers - fixes #6196.
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index 58c67e2cbe..0ae668d42a 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -103,7 +103,7 @@ module ActionDispatch
inner_options = args.extract_options!
result = options.dup
- if args.any?
+ if args.size > 0
keys = segment_keys
if args.size < keys.size - 1 # take format into account
keys -= self.url_options.keys if self.respond_to?(:url_options)