首页 > 解决方案 > 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 ?

标签: ruby-on-railsmailerrescue

解决方案


推荐阅读