Commit 3be74219 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Disable public_send for our preview mailers

parent d0818d20
......@@ -199,7 +199,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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment