BigW Consortium Gitlab

abuse_report_mailer.rb 356 Bytes
Newer Older
1
class AbuseReportMailer < BaseMailer
2
  include Gitlab::CurrentSettings
3

4 5
  def notify(abuse_report_id)
    @abuse_report = AbuseReport.find(abuse_report_id)
6

7 8 9 10
    mail(
      to:       current_application_settings.admin_notification_email, 
      subject:  "#{@abuse_report.user.name} (#{@abuse_report.user.username}) was reported for abuse"
    )
11 12
  end
end