2015-10-08 11:13:28 -04:00
|
|
|
class AbuseReportMailer < BaseMailer
|
2015-10-18 05:58:45 -04:00
|
|
|
include Gitlab::CurrentSettings
|
2015-10-08 11:13:28 -04:00
|
|
|
|
2015-10-18 05:58:45 -04:00
|
|
|
def notify(abuse_report_id)
|
|
|
|
@abuse_report = AbuseReport.find(abuse_report_id)
|
2015-10-08 11:13:28 -04:00
|
|
|
|
2015-10-18 05:58:45 -04: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 11:13:28 -04:00
|
|
|
end
|
|
|
|
end
|