Sha256: 8b748151c474ebb3842ed07cb7a5bc83c6323404e9c92774c465c42f98c597e2
Contents?: true
Size: 623 Bytes
Versions: 3
Compression:
Stored size: 623 Bytes
Contents
module MongoSessionStore def self.collection_name @collection_name end def self.collection_name=(name) @collection_name = name if defined?(MongoStore::Session) MongoStore::Session.reset_collection elsif defined?(MongoidStore::Session) MongoidStore::Session.store_in \ :collection => MongoSessionStore.collection_name end @collection_name end # default collection name for all the stores self.collection_name = "sessions" end if defined?(Mongoid) require "mongo_session_store/mongoid_store" elsif defined?(Mongo) require "mongo_session_store/mongo_store" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongo_session_store-rails-7.0.2 | lib/mongo_session_store.rb |
mongo_session_store-rails-7.0.1 | lib/mongo_session_store.rb |
mongo_session_store-rails-7.0.0 | lib/mongo_session_store.rb |