Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-07-06 16:38:05 +0300
committerLin Jen-Shin <godfat@godfat.org>2018-07-06 16:38:05 +0300
commit66db55319054d6988bc8efd8fab9b59377907ef5 (patch)
tree9774f75cf0ed6065bb126aa6997a5b7e6599c3d7 /app/mailers/previews
parentc83381938aafe6d5e7da8890150ba285a2533665 (diff)
Disable public_send for our preview mailers
Diffstat (limited to 'app/mailers/previews')
-rw-r--r--app/mailers/previews/notify_preview.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/mailers/previews/notify_preview.rb b/app/mailers/previews/notify_preview.rb
index e32fd0bd120..3615cde8026 100644
--- a/app/mailers/previews/notify_preview.rb
+++ b/app/mailers/previews/notify_preview.rb
@@ -153,7 +153,7 @@ class NotifyPreview < ActionMailer::Preview
cleanup do
note = yield
- Notify.public_send(method, user.id, note)
+ Notify.public_send(method, user.id, note) # rubocop:disable GitlabSecurity/PublicSend
end
end