Sha256: 3022bea91619086059166fb11ef0e7a332b17a3d60b06e546376fa3751e53ddc

Contents?: true

Size: 794 Bytes

Versions: 11

Compression:

Stored size: 794 Bytes

Contents

# frozen_string_literal: true

if defined?(ActionMailer)
  class Devise::Mailer < Devise.parent_mailer.constantize
    include Devise::Mailers::Helpers

    def confirmation_instructions(record, token, opts={})
      @token = token
      devise_mail(record, :confirmation_instructions, opts)
    end

    def reset_password_instructions(record, token, opts={})
      @token = token
      devise_mail(record, :reset_password_instructions, opts)
    end

    def unlock_instructions(record, token, opts={})
      @token = token
      devise_mail(record, :unlock_instructions, opts)
    end

    def email_changed(record, opts={})
      devise_mail(record, :email_changed, opts)
    end

    def password_change(record, opts={})
      devise_mail(record, :password_change, opts)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
devise-4.7.2 app/mailers/devise/mailer.rb
devise-4.7.1 app/mailers/devise/mailer.rb
devise-4.7.0 app/mailers/devise/mailer.rb
devise-4.6.2 app/mailers/devise/mailer.rb
devise-4.6.1 app/mailers/devise/mailer.rb
devise-4.6.0 app/mailers/devise/mailer.rb
devise-4.5.0 app/mailers/devise/mailer.rb
devise-4.4.3 app/mailers/devise/mailer.rb
devise-4.4.2 app/mailers/devise/mailer.rb
devise-4.4.1 app/mailers/devise/mailer.rb
devise-4.4.0 app/mailers/devise/mailer.rb