Remove unused code

This commit is contained in:
Artur Beljajev 2018-06-15 15:37:47 +03:00
parent 5a0d191b7e
commit e1db29f523
3 changed files with 1 additions and 136 deletions

View file

@ -45,18 +45,4 @@ class DomainMailer < ApplicationMailer
subject: "#{I18n.t(:delete_confirmation_subject,
name: @domain.name)} [#{@domain.name}]")
end
private
# app/models/DomainMailModel provides the data for mail that can be composed_from
# which ensures that values of objects are captured when they are valid, not later when this method is executed
def compose_from(params)
@params = params
return if delivery_off?(params, params[:deliver_emails])
return if whitelist_blocked?(params[:recipient])
params[:errors].map do |error|
logger.warn error
return
end
mail(to: params[:recipient], subject: params[:subject])
end
end
end