diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2012-05-10 22:13:04 +0100 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2012-05-10 22:13:04 +0100 |
commit | 66e338aa98d8ccdbeb9ca261886edd1d0c9747b6 (patch) | |
tree | 307e80e9389c8cf4890cc0914301fa84167f131a /actionpack/lib/action_dispatch | |
parent | f3aaac46e6e5f4946831466f531a2a03791a3c8a (diff) | |
download | rails-66e338aa98d8ccdbeb9ca261886edd1d0c9747b6.tar.gz rails-66e338aa98d8ccdbeb9ca261886edd1d0c9747b6.tar.bz2 rails-66e338aa98d8ccdbeb9ca261886edd1d0c9747b6.zip |
Don't ignore nil positional arguments for url helpers - fixes #6196.
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 2 |
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 8e7c997dc6..cde6cb20cc 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -178,7 +178,7 @@ module ActionDispatch options = args.extract_options! result = #{options.inspect} - if args.any? + if args.size > 0 result[:_positional_args] = args result[:_positional_keys] = #{route.segment_keys.inspect} end |