From 3c026971149c95f076b8c50a52ddbfed139d5b20 Mon Sep 17 00:00:00 2001 From: Heinrich Lee Yu Date: Thu, 6 Dec 2018 08:51:30 +0800 Subject: Import CSV Backend Process CSV uploads async using a worker then email results --- app/mailers/emails/issues.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'app/mailers/emails/issues.rb') diff --git a/app/mailers/emails/issues.rb b/app/mailers/emails/issues.rb index 370e6d2f90b..654ae211310 100644 --- a/app/mailers/emails/issues.rb +++ b/app/mailers/emails/issues.rb @@ -77,6 +77,17 @@ module Emails mail_answer_thread(issue, issue_thread_options(updated_by_user.id, recipient.id, reason)) end + def import_issues_csv_email(user_id, project_id, results) + @user = User.find(user_id) + @project = Project.find(project_id) + @results = results + + mail(to: @user.notification_email, subject: subject('Imported issues')) do |format| + format.html { render layout: 'mailer' } + format.text { render layout: 'mailer' } + end + end + private def setup_issue_mail(issue_id, recipient_id) -- cgit v1.2.1