Sha256: d62f4e237c28df58b95034626391eb2bf5bff40667f6b3783e0e81f61048b381
Contents?: true
Size: 529 Bytes
Versions: 4
Compression:
Stored size: 529 Bytes
Contents
begin require 'mongo_mapper' require 'mongo_session_store/mongo_store_base' module ActionDispatch module Session class MongoMapperStore < MongoStoreBase class Session include MongoMapper::Document set_collection_name MongoSessionStore.collection_name key :_id, String key :data, Binary, :default => Marshal.dump({}) timestamps! end end end end MongoMapperStore = ActionDispatch::Session::MongoMapperStore rescue LoadError end
Version data entries
4 entries across 4 versions & 1 rubygems