summaryrefslogtreecommitdiff
path: root/app/controllers/abuse_reports_controller.rb
diff options
context:
space:
mode:
authorJosh Frye <joshfng@gmail.com>2016-01-12 12:36:28 -0500
committerJosh Frye <joshfng@gmail.com>2016-01-16 10:47:12 -0500
commitc70ed7f2cdc0fbecea739a08332529b71325938c (patch)
treedd50fff1b8746fedaea49aa3765ee5a19318d64b /app/controllers/abuse_reports_controller.rb
parent5cd2f77769d968d10cc8e4371e88ff8be9f28c8c (diff)
downloadgitlab-ce-c70ed7f2cdc0fbecea739a08332529b71325938c.tar.gz
Autofill abuse message text with user url. Closes #2838
Diffstat (limited to 'app/controllers/abuse_reports_controller.rb')
-rw-r--r--app/controllers/abuse_reports_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/abuse_reports_controller.rb b/app/controllers/abuse_reports_controller.rb
index 38814459f66..2eac0cabf7a 100644
--- a/app/controllers/abuse_reports_controller.rb
+++ b/app/controllers/abuse_reports_controller.rb
@@ -2,6 +2,7 @@ class AbuseReportsController < ApplicationController
def new
@abuse_report = AbuseReport.new
@abuse_report.user_id = params[:user_id]
+ @ref_url = params.fetch(:ref_url, '')
end
def create