Class: ActiveRecord::SessionStore::ClassMethods::MarshalSerializer
- Inherits:
-
Object
- Object
- ActiveRecord::SessionStore::ClassMethods::MarshalSerializer
- Defined in:
- lib/active_record/session_store.rb
Overview
Use Marshal with Base64 encoding
Class Method Summary collapse
Class Method Details
.dump(value) ⇒ Object
57 58 59 |
# File 'lib/active_record/session_store.rb', line 57 def self.dump(value) ::Base64.encode64(Marshal.dump(value)) end |
.load(value) ⇒ Object
53 54 55 |
# File 'lib/active_record/session_store.rb', line 53 def self.load(value) Marshal.load(::Base64.decode64(value)) end |