projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove excess heading and divider. No issue #
[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 1b1fa65b35bf40dd7d7fbd5bb898e8f1a6a100ac..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,
data
)
+ def send_report(user,
params
)
@user = user
@user = user
- @data = data
- mail(subject: 'Issue reported')
+ @params = params
+ subject = 'Issue reported'
+ subject += " by #{@user.email}" if @user
+ mail(subject: subject)
end
end
end
end