summaryrefslogtreecommitdiff
path: root/app/mailers
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-07-06 21:38:05 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-07-06 21:38:05 +0800
commit66db55319054d6988bc8efd8fab9b59377907ef5 (patch)
tree9774f75cf0ed6065bb126aa6997a5b7e6599c3d7 /app/mailers
parentc83381938aafe6d5e7da8890150ba285a2533665 (diff)
downloadgitlab-ce-66db55319054d6988bc8efd8fab9b59377907ef5.tar.gz
Disable public_send for our preview mailers
Diffstat (limited to 'app/mailers')
-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