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

Version Path
mongo_session_store-rails3-4.1.0 lib/mongo_session_store/mongo_mapper_store.rb
mongo_session_store-rails3-4.0.0 lib/mongo_session_store/mongo_mapper_store.rb
mongo_session_store-rails3-3.0.6 lib/mongo_session_store/mongo_mapper_store.rb
mongo_session_store-rails3-3.0.5 lib/mongo_session_store/mongo_mapper_store.rb