Rename email sending interactor

This commit is contained in:
Alex Sherman 2020-12-04 17:48:42 +05:00
parent 42b9adbf44
commit ccf91d306a
2 changed files with 2 additions and 2 deletions

View file

@ -0,0 +1,24 @@
module Domains
module DeleteConfirmEmail
class SendRequest < ActiveInteraction::Base
object :domain,
class: Domain,
description: 'Domain to send delete confirmation'
def execute
log
DomainDeleteMailer.confirmation_request(domain: domain,
registrar: domain.registrar,
registrant: domain.registrant).deliver_later
end
private
def log
message = "Send DomainDeleteMailer#confirm email for domain #{domain.name} (##{domain.id})"\
" to #{domain.registrant.email}"
Rails.logger.info(message)
end
end
end
end