Sha256: 108708d349c377f287d75954580915adac0b85d33f91708227803a7b5e046b70

Contents?: true

Size: 470 Bytes

Versions: 14

Compression:

Stored size: 470 Bytes

Contents

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

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
mongo_session_store-rails5-7.0.0.1 lib/mongo_session_store/mongo_mapper_store.rb
mongo_session_store-rails5-7.0.0 lib/mongo_session_store/mongo_mapper_store.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mongo_session_store-rails4-6.0.0/lib/mongo_session_store/mongo_mapper_store.rb
mongo_session_store-rails3-6.0.0 lib/mongo_session_store/mongo_mapper_store.rb
mongo_session_store-rails4-6.0.0 lib/mongo_session_store/mongo_mapper_store.rb
mongo_session_store-rails3-5.1.0 lib/mongo_session_store/mongo_mapper_store.rb
mongo_session_store-rails4-5.1.0 lib/mongo_session_store/mongo_mapper_store.rb
mongo_session_store-rails3-5.0.1 lib/mongo_session_store/mongo_mapper_store.rb
mongo_session_store-rails4-5.0.1 lib/mongo_session_store/mongo_mapper_store.rb
mongo_session_store-rails3-5.0.0 lib/mongo_session_store/mongo_mapper_store.rb
mongo_session_store-rails4-5.0.0 lib/mongo_session_store/mongo_mapper_store.rb
mongo_session_store-rails3-4.1.1 lib/mongo_session_store/mongo_mapper_store.rb
mongo_session_store-rails3-3.0.4 lib/mongo_session_store/mongo_mapper_store.rb
mongo_session_store-rails3-3.0.3 lib/mongo_session_store/mongo_mapper_store.rb