summaryrefslogtreecommitdiff
path: root/app/controllers/abuse_reports_controller.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-01-04 18:59:42 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-01-04 18:59:42 -0500
commit46a220ae3c0e646aac63a3230399fcc8979df6ec (patch)
treee58ef33e0afb682cc746220cdeebd0221173e93e /app/controllers/abuse_reports_controller.rb
parent01248d205103fe6c408e914e8943873ceb7acb2a (diff)
downloadgitlab-ce-46a220ae3c0e646aac63a3230399fcc8979df6ec.tar.gz
Add `AbuseReport#notify`rs-abuse-reports-refactor
Tell, Don't Ask.
Diffstat (limited to 'app/controllers/abuse_reports_controller.rb')
-rw-r--r--app/controllers/abuse_reports_controller.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/abuse_reports_controller.rb b/app/controllers/abuse_reports_controller.rb
index 5718fd22de9..38814459f66 100644
--- a/app/controllers/abuse_reports_controller.rb
+++ b/app/controllers/abuse_reports_controller.rb
@@ -9,9 +9,7 @@ class AbuseReportsController < ApplicationController
@abuse_report.reporter = current_user
if @abuse_report.save
- if current_application_settings.admin_notification_email.present?
- AbuseReportMailer.notify(@abuse_report.id).deliver_later
- end
+ @abuse_report.notify
message = "Thank you for your report. A GitLab administrator will look into it shortly."
redirect_to @abuse_report.user, notice: message