Disable public_send for our preview mailers

This commit is contained in:
Lin Jen-Shin 2018-07-06 21:38:05 +08:00
parent c83381938a
commit 66db553190

View file

@ -153,7 +153,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