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

Version Path
kaze-0.17.0 stubs/default/app/models/concerns/must_verify_email.rb
kaze-0.16.0 stubs/default/app/models/concerns/must_verify_email.rb
kaze-0.15.0 stubs/default/app/models/concerns/must_verify_email.rb
kaze-0.14.0 stubs/default/app/models/concerns/must_verify_email.rb
kaze-0.13.0 stubs/default/app/models/concerns/must_verify_email.rb
kaze-0.12.0 stubs/default/app/models/concerns/must_verify_email.rb
kaze-0.11.0 stubs/default/app/models/concerns/must_verify_email.rb