Remove any chance of block args stomping on locals here

This commit is contained in:
Ryan Tomayko 2009-03-24 01:31:21 -07:00
parent 22e1d8c5a2
commit d5f2028d5a
1 changed files with 1 additions and 1 deletions

View File

@ -796,7 +796,7 @@ module Sinatra
builder.use Rack::Session::Cookie if sessions? && !test?
builder.use Rack::CommonLogger if logging?
builder.use Rack::MethodOverride if methodoverride?
@middleware.each { |c, args, bk| builder.use(c, *args, &bk) }
@middleware.each { |c,a,b| builder.use(c, *a, &b) }
builder.run super
builder.to_app
end