Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Rochkind <jonathan@dnil.net>2015-10-08 18:13:28 +0300
committerJonathan Rochkind <jonathan@dnil.net>2015-10-09 00:33:57 +0300
commitae4fbae26cefbf10848719ee8c06d418c348420c (patch)
tree147370c32c20f1c78b0e078e442b4c7ba5bf1001 /app/mailers
parent0de7c83a78711601b40b5a739070da2e3af29b11 (diff)
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.rb8
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