Sha256: a8f5548f1576e52fd5ab226378c2872bbf7f99c046fc7bcac6eccc47f05d527f

Contents?: true

Size: 489 Bytes

Versions: 5

Compression:

Stored size: 489 Bytes

Contents

# frozen_string_literal: true

module Masks
  # @visibility private
  class ActorMailer < ApplicationMailer
    layout "masks/mailer"

    def verify_email
      @config = Masks.configuration
      @email = params[:email]

      mail(to: @email.email, subject: t(".subject"))
    end

    def recover_credentials
      @config = Masks.configuration
      @recovery = @config.find_recovery(nil, id: params[:recovery])

      mail(to: @recovery.to, subject: t(".subject"))
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
masks-0.4.0 app/mailers/masks/actor_mailer.rb
masks-0.3.2 app/mailers/masks/actor_mailer.rb
masks-0.3.1 app/mailers/masks/actor_mailer.rb
masks-0.3.0 app/mailers/masks/actor_mailer.rb
masks-0.2.0 app/mailers/masks/actor_mailer.rb