Story#117612061 - do not send email if it's contact was removed

This commit is contained in:
Vladimir Krylov 2016-04-18 12:07:13 +03:00
parent 8ab42450ca
commit 5b32ba5e58

View file

@ -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