Ruby on Rails
Friday, February 10, 2017
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
-- 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/3873b9ab-c364-49eb-8566-5569066aadec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment