2015-10-08 15:13:28 +00:00
|
|
|
class AbuseReportMailer < BaseMailer
|
2015-10-18 09:58:45 +00:00
|
|
|
include Gitlab::CurrentSettings
|
2015-10-08 15:13:28 +00:00
|
|
|
|
2015-10-18 09:58:45 +00:00
|
|
|
def notify(abuse_report_id)
|
|
|
|
@abuse_report = AbuseReport.find(abuse_report_id)
|
2015-10-08 15:13:28 +00:00
|
|
|
|
2015-10-18 09:58:45 +00:00
|
|
|
mail(
|
|
|
|
to: current_application_settings.admin_notification_email,
|
|
|
|
subject: "#{@abuse_report.user.name} (#{@abuse_report.user.username}) was reported for abuse"
|
|
|
|
)
|
2015-10-08 15:13:28 +00:00
|
|
|
end
|
|
|
|
end
|