lib/ramaze/dispatcher/action.rb in manveru-ramaze-2008.08 vs lib/ramaze/dispatcher/action.rb in manveru-ramaze-2008.09

- old
+ new

@@ -1,10 +1,10 @@ # Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. module Ramaze - module Dispatcher + class Dispatcher # This dispatcher is responsible for relaying requests to Controller::handle # and filtering the results using FILTER. class Action @@ -24,11 +24,10 @@ def call(path) log(path) catch(:respond) { - body = Controller.handle(path) - Response.current.build(body) + response.write Controller.handle(path) } FILTER.each{|f| f.call(response)} response rescue Ramaze::Error => ex