summaryrefslogtreecommitdiff
path: root/app/mailers/abuse_report_mailer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/mailers/abuse_report_mailer.rb')
-rw-r--r--app/mailers/abuse_report_mailer.rb12
1 files changed, 12 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..f0c41f69a5c
--- /dev/null
+++ b/app/mailers/abuse_report_mailer.rb
@@ -0,0 +1,12 @@
+class AbuseReportMailer < BaseMailer
+ include Gitlab::CurrentSettings
+
+ def notify(abuse_report_id)
+ @abuse_report = AbuseReport.find(abuse_report_id)
+
+ mail(
+ to: current_application_settings.admin_notification_email,
+ subject: "#{@abuse_report.user.name} (#{@abuse_report.user.username}) was reported for abuse"
+ )
+ end
+end