devise-login-cookie 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,7 +34,7 @@ module DeviseLoginCookie
34
34
 
35
35
  def resource
36
36
  # returns nil when user is missing.
37
- @resource ||= mapping.to.where(:id => cookie.id)
37
+ @resource ||= mapping.to.where(:id => cookie.id).first
38
38
  end
39
39
 
40
40
  def pass
@@ -1,3 +1,3 @@
1
1
  module DeviseLoginCookie
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Paul Annesley