Merge pull request #479 from rolftimmermans/use-accepts-block

Use method should accept a block when adding Rack middleware.
This commit is contained in:
Thomas Reynolds 2012-06-14 08:31:18 -07:00
commit f4feda8b93

View file

@ -170,7 +170,7 @@ module Middleman
}) })
end 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 def map(*args, &block); self.class.map(*args, &block); end
# Rack env # Rack env