diff options
author | rinaldifonseca <rinaldifonseca@gmail.com> | 2011-03-25 23:21:29 -0300 |
---|---|---|
committer | Michael Fellinger <m.fellinger@gmail.com> | 2011-03-26 11:28:36 +0900 |
commit | 2f92be21302db255f4357e95e9e1ce535b1a6a89 (patch) | |
tree | b8134770de6ef51b53908a7d4c71f717d29bed71 /lib/rack/urlmap.rb | |
parent | b4f95f709ac30473ef48ca3995fa21637dd0b78c (diff) | |
download | rack-2f92be21302db255f4357e95e9e1ce535b1a6a89.tar.gz |
1.9, lambda argument count has to match
Diffstat (limited to 'lib/rack/urlmap.rb')
-rw-r--r-- | lib/rack/urlmap.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/urlmap.rb b/lib/rack/urlmap.rb index 450f3d9d..4d6b8c62 100644 --- a/lib/rack/urlmap.rb +++ b/lib/rack/urlmap.rb @@ -19,7 +19,7 @@ module Rack end def remap(map) - longest_path_first = lambda do |host, location, _, _| + longest_path_first = lambda do |(host, location, _, _)| [host ? -host.size : NEGATIVE_INFINITY, -location.size] end @mapping = map.map { |location, app| |