stupid_auth 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/stupid_auth/model.rb +2 -1
  2. metadata +2 -2
@@ -55,7 +55,8 @@ module StupidAuth
55
55
 
56
56
  def set_logged_in_at!
57
57
  return nil unless respond_to? :logged_in_at
58
- update_attribute :logged_in_at, Time.zone.now
58
+ update_attribute :previous_log_in_at, self.logged_in_at if respond_to? :previous_log_in_at
59
+ update_attribute :logged_in_at, Time.zone.now
59
60
  end
60
61
 
61
62
  # Hash the provided password and persist it, along with a salt
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Dev Fu!