Permalink
Browse files

Add unused env parameter for lambdas (Ruby 1.9 compatibility)

Possibly related to GH-48
#48
  • Loading branch information...
tkareine committed Apr 4, 2012
1 parent 451f029 commit 04ced706c7d9a6a6af6d7c826dbea79249928b10
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/rack/contrib/try_static.rb
  2. +1 −1 test/spec_rack_try_static.rb
@@ -19,7 +19,7 @@ def initialize(app, options)
@app = app
@try = ['', *options.delete(:try)]
@static = ::Rack::Static.new(
- lambda { [404, {}, []] },
+ lambda { |_| [404, {}, []] },
options)
end
@@ -13,7 +13,7 @@ def request(options = {})
@request =
Rack::MockRequest.new(
Rack::TryStatic.new(
- lambda {[200, {}, ["Hello World"]]},
+ lambda { |_| [200, {}, ["Hello World"]]},
options))
end

0 comments on commit 04ced70

Please sign in to comment.