Class: ActionController::Session::DatamapperStore
- Inherits:
-
AbstractStore
- Object
- AbstractStore
- ActionController::Session::DatamapperStore
- Defined in:
- lib/datamapper4rails/datamapper_store.rb
Instance Method Summary collapse
-
#initialize(app, options = {}) ⇒ DatamapperStore
constructor
A new instance of DatamapperStore.
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, = {}) super if .delete(:cache) @@cache = {} else @@cache = nil unless self.class.class_variable_defined? :@@cache end @@session_class = .delete(:session_class) || ::DatamapperStore::Session unless (self.class.class_variable_defined? :@@session_class and @@session_class) end |