Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (16 sloc) 0.47 kb
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
Jump to Line
Something went wrong with that request. Please try again.