Sha256: 0fcf1f6cc9728bfd667998e291afce90547daf1624d3f4e48f327bba4b3f8c18
Contents?: true
Size: 820 Bytes
Versions: 2
Compression:
Stored size: 820 Bytes
Contents
# frozen_string_literal: true if defined?(ActionMailer) class Kingsman::Mailer < Kingsman.parent_mailer.constantize include Kingsman::Mailers::Helpers def confirmation_instructions(record, token, opts = {}) @token = token kingsman_mail(record, :confirmation_instructions, opts) end def reset_password_instructions(record, token, opts = {}) @token = token kingsman_mail(record, :reset_password_instructions, opts) end def unlock_instructions(record, token, opts = {}) @token = token kingsman_mail(record, :unlock_instructions, opts) end def email_changed(record, opts = {}) kingsman_mail(record, :email_changed, opts) end def password_change(record, opts = {}) kingsman_mail(record, :password_change, opts) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kingsman-0.1.1 | app/mailers/kingsman/mailer.rb |
kingsman-0.1.0 | app/mailers/kingsman/mailer.rb |