Class: OTP::Mailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- OTP::Mailer
- Defined in:
- lib/otp/mailer.rb
Overview
OTP mailer.
Instance Method Summary collapse
-
#otp(email, otp_code, model, mail_opts = {}) ⇒ Mail
Sends an email containing the OTP.
Instance Method Details
#otp(email, otp_code, model, mail_opts = {}) ⇒ Mail
Sends an email containing the OTP
18 19 20 21 22 23 |
# File 'lib/otp/mailer.rb', line 18 def otp(email, otp_code, model, mail_opts = {}) @model = model @otp_code = otp_code mail(to: email, **mail_opts) end |