X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/39f5ca6f38aa5aa6b00479bcfb93e0a9a5cf511c..d3be53db90fc31f13a477056b48a39dfa351ef5e:/apps/workbench/app/mailers/issue_reporter.rb diff --git a/apps/workbench/app/mailers/issue_reporter.rb b/apps/workbench/app/mailers/issue_reporter.rb index 1b1fa65b35..212dd7dbf9 100644 --- a/apps/workbench/app/mailers/issue_reporter.rb +++ b/apps/workbench/app/mailers/issue_reporter.rb @@ -1,10 +1,12 @@ class IssueReporter < ActionMailer::Base - default from: Rails.configuration.report_notifier_email_from - default to: Rails.configuration.report_notifier_email_to + default from: Rails.configuration.issue_reporter_email_from + default to: Rails.configuration.issue_reporter_email_to - def send_report(user, data) + def send_report(user, params) @user = user - @data = data - mail(subject: 'Issue reported') + @params = params + subject = 'Issue reported' + subject += " by #{@user.email}" if @user + mail(subject: subject) end end