Handle expired confirmation tokens
This commit is contained in:
parent
8ca781ac75
commit
091473602b
4 changed files with 35 additions and 3 deletions
|
@ -5,6 +5,10 @@ class UserToken < ActiveRecord::Base
|
|||
|
||||
after_initialize :set_defaults
|
||||
|
||||
def expired?
|
||||
expiry < Time.now
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def set_defaults
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue