summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-01-04 14:17:08 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-01-04 14:17:08 +0100
commit2d92b642d6e34134418045dd5a4980820b5e43d2 (patch)
tree880440bd9a50baefd2c89ec6588a4a6e91197dbb /lib
parent3dc72b17a167b1f56a585f50bc8d0705c1b69292 (diff)
downloadzorglub-2d92b642d6e34134418045dd5a4980820b5e43d2.zip
zorglub-2d92b642d6e34134418045dd5a4980820b5e43d2.tar.gz
session: add @response instance var
Diffstat (limited to 'lib')
-rw-r--r--lib/zorglub/session.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/zorglub/session.rb b/lib/zorglub/session.rb
index 157c786..c6a050e 100644
--- a/lib/zorglub/session.rb
+++ b/lib/zorglub/session.rb
@@ -7,7 +7,7 @@ module Zorglub
class Node
#
def session
- @session ||= Session.new @request
+ @session ||= Session.new @request, @response
end
end
#
@@ -45,8 +45,9 @@ module Zorglub
attr_accessor :session_key, :session_kls
end
#
- def initialize req
+ def initialize req, resp
@request = req
+ @response = resp
@instance = nil
end
#