ruby-on-rails - Customise Mailer::DeliverJob
问题描述
I have a system that uses mailer to notify users of any change in their accounts.
I am using deliver_later
for async_process
, but need to handle an exception if there are any errors that occur during the delivery process.
The solution I am looking for is to change the deliver_job
implemented for mailer.
I have read and followed some tutorials like this one blog tutorial on making custom jobs which suggests:
undefined method `delivery_job=' for UserNotifier:Class
Did you mean? delivery_method=
Can someone tell me how to change the default value ActionMailer::DeliveryJob
?
解决方案
推荐阅读
- python - 扩展自定义用户模型 - Django 中的多种用户类型
- python - Python在列表中的字典中查找值
- html - 输入和文本区域由软键盘悬停
- jvm - Java 运行时环境检测到一个致命错误:SIGBUS while install ZAP proxy in parrot home OS
- gpu - 在 Arch linux 上使用英特尔图形 4400 设置 OpenCL?
- sql - 基于文本列的正则表达式模式匹配将表拆分为相关表
- bash - Bash:为什么不能在使用花括号的分组命令之前放置重定向
- javascript - Using html code with a javascript code as a widget in flutter web
- android - trying to build my own notification but nothing works
- powershell - Pinging Docker Daemon via API Using Powershell fails