Module: MinimalistAuthentication::EmailVerification::ClassMethods

Defined in:
lib/minimalist_authentication/email_verification.rb

Instance Method Summary collapse

Instance Method Details

#email_verifiedObject



18
19
20
21
22
23
24
# File 'lib/minimalist_authentication/email_verification.rb', line 18

def email_verified
  MinimalistAuthentication.deprecator.warn(<<-MSG.squish)
    Calling #email_verified is deprecated.
    Call #with_verified_email instead.
  MSG
  with_verified_email
end

#find_by_verified_email(email:) ⇒ Object



26
27
28
# File 'lib/minimalist_authentication/email_verification.rb', line 26

def find_by_verified_email(email:)
  active.with_verified_email.find_by(email:)
end