remember_me 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/remember_me/controller.rb +5 -2
- data/lib/remember_me/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fca18aa7dc1bc82dd73c6fb24943867b697ca14
|
4
|
+
data.tar.gz: b0a4a3be2b8dfb9fa9bc9bfd1ed196506a8ab567
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de1ce4d69ab106aa9c7460d694f0c58f53f35ec738c4b0ed0fd839b30ba867a5dcf3e38b801fc48789b656f73f56e3ef1ae18cd86e521738a25ba92a00c24ca9
|
7
|
+
data.tar.gz: 608837fad787ffa9fbcd3f91ab0c5af8c581037ccd30d0c4c5cc7903809d76fbe6acc7cc4e007ba83c05c55b68dbcf6a5407108b3753ecf3029d361ccb0bab18
|
@@ -44,8 +44,11 @@ module RememberMe
|
|
44
44
|
cookie = cookies.signed[remember_key(scope)]
|
45
45
|
resource = cookie ?
|
46
46
|
"#{scope.classify}".constantize.serialize_from_cookie(*cookie) : nil
|
47
|
-
|
48
|
-
|
47
|
+
if block_given?
|
48
|
+
yield resource
|
49
|
+
else
|
50
|
+
resource
|
51
|
+
end
|
49
52
|
end
|
50
53
|
end
|
51
54
|
end
|
data/lib/remember_me/version.rb
CHANGED