Sha256: 3fa704641b30fcb2010d1b222340754d1985132a30be3147b19085e883312ca5
Contents?: true
Size: 277 Bytes
Versions: 7
Compression:
Stored size: 277 Bytes
Contents
module MustVerifyEmail def has_verified_email? !email_verified_at.nil? end def mark_email_as_verified self.update(email_verified_at: Time.now) end def send_email_verification_notification UserMailer.with(user: self).verify_email.deliver_later end end
Version data entries
7 entries across 7 versions & 1 rubygems