Class: DataMapper::Session::Datamapper
- Inherits:
-
Rack::Session::Abstract::ID
- Object
- Rack::Session::Abstract::ID
- DataMapper::Session::Datamapper
- Defined in:
- lib/rack_datamapper/session/datamapper.rb
Instance Method Summary collapse
-
#initialize(app, options = {}) ⇒ Datamapper
constructor
A new instance of Datamapper.
Constructor Details
#initialize(app, options = {}) ⇒ Datamapper
Returns a new instance of Datamapper.
8 9 10 11 12 13 14 |
# File 'lib/rack_datamapper/session/datamapper.rb', line 8 def initialize(app, = {}) super id_generator = Proc.new do generate_sid end @store = ::DataMapper::Session::Abstract::Store.new(app, , id_generator) end |