mongo_session_store 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -13,10 +13,11 @@ This is a fork of the DataMapper session store, modified to work with MongoMappe
13
13
  In config/environment.rb:
14
14
 
15
15
  config.gem "mongo_mapper"
16
- config.gem "mongo_session_store", :lib => "mongo_session_store/mongo_mapper"
16
+ config.gem "mongo_session_store"
17
17
 
18
18
  In the session_store initializer:
19
19
 
20
+ require "mongo_session_store/mongo_mapper"
20
21
  ActionController::Base.session_store = :mongo_mapper_store
21
22
 
22
23
  ## Usage with Mongoid
@@ -8,8 +8,8 @@ module ActionController
8
8
  include MongoMapper::Document
9
9
  key :data, String, :default => [Marshal.dump({})].pack("m*")
10
10
  timestamps!
11
-
12
- MongoMapper.ensure_indexes!
11
+
12
+ ensure_index :updated_at
13
13
  end
14
14
 
15
15
  # The class used for session storage.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo_session_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Nicolas M\xC3\xA9rouze"
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2010-02-17 00:00:00 +01:00
14
+ date: 2010-02-21 00:00:00 +01:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency