Class: DataMapperStore::Session
- Inherits:
-
Object
- Object
- DataMapperStore::Session
- Includes:
- DataMapper::Resource
- Defined in:
- lib/rails_datamapper/session_store.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.name ⇒ Object
46 47 48 |
# File 'lib/rails_datamapper/session_store.rb', line 46 def self.name "session" end |
Instance Method Details
#data ⇒ Object
59 60 61 |
# File 'lib/rails_datamapper/session_store.rb', line 59 def data Marshal.load(::Base64.decode64(attribute_get(:data))) end |
#data=(data) ⇒ Object
55 56 57 |
# File 'lib/rails_datamapper/session_store.rb', line 55 def data=(data) attribute_set(:data, ::Base64.encode64(Marshal.dump(data))) end |