projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
10111: Merge branch 'master' into 10111-cr-provenance-graph
[arvados.git]
/
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 533883b5d8fc9a7af97249c4e5b6b4e1a6ad1f4d..212dd7dbf9b8e07aa4c1a2ce136a239fcbfe8682 100644
(file)
--- a/
apps/workbench/app/mailers/issue_reporter.rb
+++ b/
apps/workbench/app/mailers/issue_reporter.rb
@@
-1,10
+1,12
@@
class IssueReporter < ActionMailer::Base
class IssueReporter < ActionMailer::Base
- default from: Rails.configuration.
report_notifi
er_email_from
- default to: Rails.configuration.
report_notifi
er_email_to
+ default from: Rails.configuration.
issue_report
er_email_from
+ default to: Rails.configuration.
issue_report
er_email_to
def send_report(user, params)
@user = user
@params = params
def send_report(user, params)
@user = user
@params = params
- mail(subject: 'Issue reported')
+ subject = 'Issue reported'
+ subject += " by #{@user.email}" if @user
+ mail(subject: subject)
end
end
end
end