mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 21:54:48 +02:00
Rename email sending interactor
This commit is contained in:
parent
42b9adbf44
commit
ccf91d306a
2 changed files with 2 additions and 2 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue