simplest_auth 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -52,16 +52,16 @@ module SimplestAuth
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def current_user=(user)
|
55
|
-
session[
|
55
|
+
session[session_key] = user ? user.id : nil
|
56
56
|
@current_user = user || false
|
57
57
|
end
|
58
58
|
|
59
59
|
def current_user_id
|
60
|
-
session[
|
60
|
+
session[session_key]
|
61
61
|
end
|
62
62
|
|
63
63
|
def clear_session
|
64
|
-
session[
|
64
|
+
session[session_key] = nil
|
65
65
|
end
|
66
66
|
|
67
67
|
def self.included(base)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplest_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Pitale
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-07-
|
12
|
+
date: 2009-07-08 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|