summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGibheer <gibheer@gmail.com>2012-10-05 08:11:34 +0200
committerGibheer <gibheer@gmail.com>2012-10-05 08:11:34 +0200
commitf12ceef4a83c469214c96fca50946d5917401674 (patch)
treec7bfae081ab549c65153b2c198d100532d3d071b /lib
parent30399df1c73410bf26dcdee1fccae95311c2f4ff (diff)
added the request as a parameter to the controller
Diffstat (limited to 'lib')
-rw-r--r--lib/zero/controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/zero/controller.rb b/lib/zero/controller.rb
index 3769f69..87a7124 100644
--- a/lib/zero/controller.rb
+++ b/lib/zero/controller.rb
@@ -9,5 +9,10 @@ module Zero
def self.call(env)
new(Request.new(env)).render
end
+
+ def initialize(request)
+ @response = Response.new
+ @request = request
+ end
end
end