diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-04 09:46:57 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-04 09:46:57 +0100 |
commit | 65e2e89677c0679ea329e4d8be7026074ffc3ddf (patch) | |
tree | bf1b11808399b52f6012f595100f55c943ab20de | |
parent | 670d6304d8064d60a282abd8c28b39038f54d4b2 (diff) | |
download | zorglub-65e2e89677c0679ea329e4d8be7026074ffc3ddf.zip zorglub-65e2e89677c0679ea329e4d8be7026074ffc3ddf.tar.gz |
Node@session goes from node.rb into session.rb
-rw-r--r-- | lib/zorglub/node.rb | 4 | ||||
-rw-r--r-- | 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 = {} |