lib/error_mailer.rb
# This should be a private method, but as it is in a Module function, it cannot be private.
This should be a private method, but as it is in a Module function, it cannot be private.
This should be a private method but as it is in a Module function it cannot be private .
def calculate_recipients(append_recipients, recipients: nil)
    send_to = if recipients
                recipients.is_a?(Array) ? recipients.map { |t, e| "#{t}<#{e}>" }.join(',') : recipients
              else
                AppConst::ERROR_MAIL_RECIPIENTS
              end
    return send_to unless append_recipients
    "#{send_to},#{append_recipients.is_a?(Array) ? append_recipients.map { |t, e| "#{t}<#{e}>" }.join(',') : append_recipients}"
  end
def calculate_recipients ( append_recipients , recipients : nil ) send_to = if recipients recipients . is_a? ( Array ) ? recipients . map { | t , e | "#{t}<#{e}>" } . join ( ',' ) : recipients else AppConst :: ERROR_MAIL_RECIPIENTS end return send_to unless append_recipients "#{send_to},#{append_recipients.is_a?(Array) ? append_recipients.map { |t, e| "#{t}<#{e}>" }.join(',') : append_recipients}" end
This should be a private method, but as it is in a Module function, it cannot be private.
This should be a private method but as it is in a Module function it cannot be private .
append_recipients
<not_specific>
recipients
<not_specific>