lib/html_mockup/server.rb in flurin-html_mockup-0.3.0 vs lib/html_mockup/server.rb in flurin-html_mockup-0.3.1

- old
+ new

@@ -39,10 +39,10 @@ def application return @app if @app @stack.use ::Rack::ShowExceptions @stack.use ::Rack::Lint - @middleware.each { |c,a,b| builder.use(c, *a, &b) } + @middleware.each { |c,a,b| @stack.use(c, *a, &b) } @stack.use Rack::HtmlValidator if self.options["validate"] @stack.run Rack::HtmlMockup.new(self.root, self.partial_path) @app = @stack.to_app \ No newline at end of file