开发者

Do mail interceptors get called when config.action_mailer.delivery_method = :test

That's really the whole question. I have some 开发者_开发问答mail interceptors but when I set the delivery mode to test, they don't do their thing - is this to be expected?

config.action_mailer.delivery_method = :test


A bit of a nonstarter question but I'll leave the answer in case it helps anyone else.

It turns out the interceptor was actually running. The problem I was having is that because it was being executed via delayed_job and delayed_job does not reload the classes on each job (unsurprisingly), the fact that I'd changed the code had not yet filtered through to the jobs themselves.

On restarting the jobs worker, everything came back to normal

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜