From 65e2e89677c0679ea329e4d8be7026074ffc3ddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 4 Jan 2012 09:46:57 +0100 Subject: Node@session goes from node.rb into session.rb --- lib/zorglub/node.rb | 4 ---- lib/zorglub/session.rb | 7 +++++++ 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 = {} -- cgit v1.1-2-g2b99