mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
Add email verification job
This commit is contained in:
parent
9ae85f3d74
commit
95a017629e
2 changed files with 45 additions and 1 deletions
|
@ -3,7 +3,8 @@ class EmailAddressVerification < ApplicationRecord
|
|||
RECENTLY_VERIFIED_PERIOD = 1.month
|
||||
|
||||
def recently_verified?
|
||||
verified_at > Time.zone.now - RECENTLY_VERIFIED_PERIOD
|
||||
verified_at.present? &&
|
||||
verified_at > Time.zone.now - RECENTLY_VERIFIED_PERIOD
|
||||
end
|
||||
|
||||
def verify
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue