summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/zorglub/node.rb4
-rw-r--r--lib/zorglub/session.rb7
2 files changed, 7 insertions, 4 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb
index 78f46af..aed6376 100644
--- a/lib/zorglub/node.rb
+++ b/lib/zorglub/node.rb
@@ -176,10 +176,6 @@ module Zorglub
self.class.r
end
#
- def session
- @session ||= Session.new @request
- end
- #
def r *args
File.join map, (args.empty? ? @action[:method] : args.map { |x| x.to_s } )
end
diff --git a/lib/zorglub/session.rb b/lib/zorglub/session.rb
index a7c0b29..583b142 100644
--- a/lib/zorglub/session.rb
+++ b/lib/zorglub/session.rb
@@ -4,6 +4,13 @@ require 'securerandom'
#
module Zorglub
#
+ class Node
+ #
+ def session
+ @session ||= Session.new @request
+ end
+ end
+ #
class SessionHash
#
@data = {}