From 66db55319054d6988bc8efd8fab9b59377907ef5 Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin Date: Fri, 6 Jul 2018 21:38:05 +0800 Subject: [PATCH] Disable public_send for our preview mailers --- app/mailers/previews/notify_preview.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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