Class: DatamapperStore::Session
- Inherits:
-
Object
- Object
- DatamapperStore::Session
- Includes:
- DataMapper::Resource
- Defined in:
- lib/datamapper4rails/datamapper_store.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.name ⇒ Object
50 51 52 |
# File 'lib/datamapper4rails/datamapper_store.rb', line 50 def self.name "session" end |
Instance Method Details
#data ⇒ Object
64 65 66 |
# File 'lib/datamapper4rails/datamapper_store.rb', line 64 def data Marshal.load(::Base64.decode64(attribute_get(:data))) end |
#data=(data) ⇒ Object
60 61 62 |
# File 'lib/datamapper4rails/datamapper_store.rb', line 60 def data=(data) attribute_set(:data, ::Base64.encode64(Marshal.dump(data))) end |