Empact-mongo_session_store 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,6 +18,12 @@ module ActionController
18
18
 
19
19
  SESSION_RECORD_KEY = 'rack.session.record'.freeze
20
20
 
21
+ def destroy(env)
22
+ session = @@session_class.first(:conditions => { :_id => env[SESSION_RECORD_KEY].id })
23
+ session.destroy
24
+ env[SESSION_RECORD_KEY] = nil
25
+ end
26
+
21
27
  private
22
28
  def generate_sid
23
29
  Mongo::ObjectID.new
@@ -53,4 +59,4 @@ module ActionController
53
59
 
54
60
  end
55
61
  end
56
- end
62
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Empact-mongo_session_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ date: 2011-08-01 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: actionpack
18
- requirement: &70329256249500 !ruby/object:Gem::Requirement
18
+ requirement: &70330988478680 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: '2.3'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70329256249500
26
+ version_requirements: *70330988478680
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mongo_mapper
29
- requirement: &70329256248540 !ruby/object:Gem::Requirement
29
+ requirement: &70330988477880 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 0.6.1
35
35
  type: :development
36
36
  prerelease: false
37
- version_requirements: *70329256248540
37
+ version_requirements: *70330988477880
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: mongoid
40
- requirement: &70329256247800 !ruby/object:Gem::Requirement
40
+ requirement: &70330988477100 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ~>
@@ -45,7 +45,7 @@ dependencies:
45
45
  version: '1.0'
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *70329256247800
48
+ version_requirements: *70330988477100
49
49
  description:
50
50
  email: nicolas.merouze@gmail.com
51
51
  executables: []