Class: ActionController::Session::DataMapperStore

Inherits:
AbstractStore
  • Object
show all
Defined in:
lib/rails_datamapper/session_store.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, options = {}) ⇒ DataMapperStore

Options passed in here are specified at: config/initializers/session_store.rb



12
13
14
15
16
17
18
19
20
21
# File 'lib/rails_datamapper/session_store.rb', line 12

def initialize(app, options = {})
  options.symbolize_keys!
  options[:expire_after] = options[:expires] || nil

  super

  unless (self.class.class_variable_defined? :@@session_class and @@session_class)
    @@session_class = options.delete(:session_class) || ::DataMapperStore::Session
  end
end