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 ...@@ -199,7 +199,7 @@ class NotifyPreview < ActionMailer::Preview
cleanup do cleanup do
note = yield note = yield
Notify.public_send(method, user.id, note) Notify.public_send(method, user.id, note) # rubocop:disable GitlabSecurity/PublicSend
end end
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