Permalink
Browse files

1.9, lambda argument count has to match

  • Loading branch information...
1 parent b4f95f7 commit 2f92be21302db255f4357e95e9e1ce535b1a6a89 @rinaldifonseca rinaldifonseca committed with manveru Mar 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/urlmap.rb
View
@@ -19,7 +19,7 @@ def initialize(map = {})
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|

0 comments on commit 2f92be2

Please sign in to comment.