Class: ActionController::Session::DataMapperStore
- Inherits:
-
AbstractStore
- Object
- AbstractStore
- ActionController::Session::DataMapperStore
- Defined in:
- lib/rails_datamapper/session_store.rb
Instance Method Summary collapse
-
#initialize(app, options = {}) ⇒ DataMapperStore
constructor
Options passed in here are specified at: config/initializers/session_store.rb.
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, = {}) .symbolize_keys! [:expire_after] = [:expires] || nil super unless (self.class.class_variable_defined? :@@session_class and @@session_class) @@session_class = .delete(:session_class) || ::DataMapperStore::Session end end |