summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGibheer <gibheer@gmail.com>2012-10-05 20:35:34 +0200
committerGibheer <gibheer@gmail.com>2012-10-05 20:35:34 +0200
commit3ec99843eb0e9df7c23996893441c526ae7f2f3f (patch)
tree10333de07f777a6954109f9104cc50bccb5bbef7 /lib
parent4365b0ff13aec724eb6a974e8fd7470526b8c386 (diff)
switched render with response
The intention is, that everything gets rendered first and after that packed to a response. This way, error checking on the response can be done after rendering.
Diffstat (limited to 'lib')
-rw-r--r--lib/zero/controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/zero/controller.rb b/lib/zero/controller.rb
index 2d95ff9..30d6632 100644
--- a/lib/zero/controller.rb
+++ b/lib/zero/controller.rb
@@ -7,7 +7,7 @@ module Zero
# with the environment and calls #render on it.
class Controller
def self.call(env)
- new(Request.new(env)).render
+ new(Request.new(env)).response
end
def initialize(request)
@@ -23,7 +23,7 @@ module Zero
end
def render
- raise NotImplementedError
+ raise NotImplementedError.new
end
end
end