ActionMailer ActiveJobs and register_interceptor/register_observer


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

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?


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