Method: QueryReport::Helper#send_pdf_email

Defined in:
lib/query_report/helper.rb

#send_pdf_email(email, subject, message, file_name, attachment) ⇒ Object



79
80
81
82
83
# File 'lib/query_report/helper.rb', line 79

def send_pdf_email(email, subject, message, file_name, attachment)
  @user = current_user
  to = email.split(',')
  ReportMailer.send_report(@user, to, subject, message, file_name, attachment).deliver
end