Class: ActionController::Session::DatamapperStore

Inherits:
AbstractStore
  • Object
show all
Defined in:
lib/datamapper4rails/datamapper_store.rb

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DatamapperStore.



7
8
9
10
11
12
13
14
15
# File 'lib/datamapper4rails/datamapper_store.rb', line 7

def initialize(app, options = {})
  super
  if options.delete(:cache)
    @@cache = {}
  else
    @@cache = nil unless self.class.class_variable_defined? :@@cache
  end
  @@session_class = options.delete(:session_class) || ::DatamapperStore::Session unless (self.class.class_variable_defined? :@@session_class and @@session_class)
end