From 65e2e89677c0679ea329e4d8be7026074ffc3ddf Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher 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(-) (limited to 'lib') 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 @@ -3,6 +3,13 @@ require 'securerandom' # module Zorglub + # + class Node + # + def session + @session ||= Session.new @request + end + end # class SessionHash # -- cgit v1.2.3