ActionMailer ActiveJobs and register_interceptor/register_observer

Hi,

I’m using delayed job to send emails (via ActionMailer) as a background job, but I also have an interceptor registered via ActionMailer::Base and an observer registered via ActionMailer::Base

Neither the interceptor or observer appear to work when the job is run though. Is there a way to allow interceptors and observers to work in background jobs?

Thanks

Turns out I had a bug in my code and the observers and interceptors do in fact work correctly.