mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 09:43:36 +02:00
Story#117612061 - do not send email if it's contact was removed
This commit is contained in:
parent
8ab42450ca
commit
5b32ba5e58
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ class ContactMailer < ApplicationMailer
|
|||
@contact = Contact.find_by(id: contact_id)
|
||||
@old_email = old_email
|
||||
unless @contact
|
||||
Rails.logger.info "Cannot send email in #{self.class.name}.#{__method__} with contact_id #{contact_id}. It cannot be found"
|
||||
Rails.logger.info "Cannot send email in #{self.class.name}##{__method__} with contact_id #{contact_id}. It cannot be found"
|
||||
return
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue