From b6d257967892122fa0e1e96b4d97633bc72f0288 Mon Sep 17 00:00:00 2001 From: Rolf Timmermans Date: Thu, 14 Jun 2012 13:53:49 +0200 Subject: [PATCH] Use method should accept a block when adding Rack middleware. --- middleman-core/lib/middleman-core/core_extensions/request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleman-core/lib/middleman-core/core_extensions/request.rb b/middleman-core/lib/middleman-core/core_extensions/request.rb index 802839b4..89d059c9 100644 --- a/middleman-core/lib/middleman-core/core_extensions/request.rb +++ b/middleman-core/lib/middleman-core/core_extensions/request.rb @@ -170,7 +170,7 @@ module Middleman }) end - def use(*args, &block); self.class.use(*args); end + def use(*args, &block); self.class.use(*args, &block); end def map(*args, &block); self.class.map(*args, &block); end # Rack env