diff options
author | Jonathan Rochkind <jonathan@dnil.net> | 2015-10-08 11:13:28 -0400 |
---|---|---|
committer | Jonathan Rochkind <jonathan@dnil.net> | 2015-10-08 17:33:57 -0400 |
commit | ae4fbae26cefbf10848719ee8c06d418c348420c (patch) | |
tree | 147370c32c20f1c78b0e078e442b4c7ba5bf1001 /app/mailers | |
parent | 0de7c83a78711601b40b5a739070da2e3af29b11 (diff) | |
download | gitlab-ce-ae4fbae26cefbf10848719ee8c06d418c348420c.tar.gz |
Send an email (to support) when a user is reported for spam
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/abuse_report_mailer.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/mailers/abuse_report_mailer.rb b/app/mailers/abuse_report_mailer.rb new file mode 100644 index 00000000000..c8b9c9c1628 --- /dev/null +++ b/app/mailers/abuse_report_mailer.rb @@ -0,0 +1,8 @@ +class AbuseReportMailer < BaseMailer + + def notify(abuse_report, to_email) + @abuse_report = abuse_report + + mail(to: to_email, subject: "[Gitlab] Abuse report filed for `#{@abuse_report.user.username}`") + end +end |