Class: ActionDispatch::Session::MongoidStore::Session
- Inherits:
-
Object
- Object
- ActionDispatch::Session::MongoidStore::Session
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- lib/mongo_session_store/mongoid_store.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.marshaled_binary(data) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/mongo_session_store/mongoid_store.rb', line 27 def self.marshaled_binary(data) if BINARY_CLASS.to_s == 'BSON::Binary' BSON::Binary.new(Marshal.dump(data), :generic) else Moped::BSON::Binary.new(:generic, Marshal.dump(data)) end end |
Instance Method Details
#marshaled_binary(data) ⇒ Object
23 24 25 |
# File 'lib/mongo_session_store/mongoid_store.rb', line 23 def marshaled_binary(data) self.class.marshaled_binary(data) end |