Class: Harbor::Session::Cookie

Inherits:
Abstract
  • Object
show all
Defined in:
lib/harbor/session/cookie.rb

Overview

Basic enhancement to Abstract session to automatically generate session_id’s.

Class Method Summary collapse

Methods inherited from Abstract

commit_session

Class Method Details

.load_session(cookie) ⇒ Object



9
10
11
12
13
# File 'lib/harbor/session/cookie.rb', line 9

def self.load_session(cookie)
  cookie = super
  cookie[:session_id] ||= `uuidgen`.chomp
  cookie
end