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 http://api.rubyonrails.org/classes/ActionMailer/Base.html#method-c-register_interceptor and an observer registered via http://api.rubyonrails.org/classes/ActionMailer/Base.html#method-c-register_observer

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.