Ruby on Rails Saturday, February 11, 2017

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

On Saturday, February 11, 2017 at 3:04:54 AM UTC-5, Andrew Kaspick wrote:
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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c5cd9c80-1a91-4db7-955f-8b5ba7c34979%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment