Class: ActionDispatch::Session::SequelStore

Inherits:
AbstractStore
  • Object
show all
Defined in:
lib/action_dispatch/middleware/session/sequel_store.rb

Constant Summary collapse

SESSION_RECORD_KEY =
'rack.session.record'.freeze
ENV_SESSION_OPTIONS_KEY =
'rack.session.options'.freeze

Class Method Summary collapse

Class Method Details

.session_classObject



13
14
15
16
17
18
19
20
# File 'lib/action_dispatch/middleware/session/sequel_store.rb', line 13

def self.session_class
  @@session_class ||= begin
    res = Class.new(Sequel::Model(:sessions))
    res.plugin :timestamps, :update_on_create => true
    res.plugin :serialization, :marshal, :data
    res
  end
end