lib/rack/app/singleton_methods/middleware.rb in rack-app-5.10.1 vs lib/rack/app/singleton_methods/middleware.rb in rack-app-5.10.2
- old
+ new
@@ -9,11 +9,11 @@
@middlewares
end
alias middleware middlewares
- def use(*args)
- middlewares{ |b| b.use(*args) }
+ def use(*args, &block)
+ middlewares{ |b| b.use(*args, &block) }
end
protected
def next_endpoint_middlewares(&block)