Auto-queued to Delayed Job. Am I tripping?
Closed this issue · 1 comments
rdetert commented
When I do something like: UserMailer.send_welcome_email(user).deliver
, the email is automatically getting queued up on Delayed Job (I'm using Delayed Job Mongoid, actually).
This threw me in for a loop and I've narrowed it down to the Griddler gem. Is this supposed to happen?
rdetert commented
Indeed I am tripping. In my tests From and To were the same address, causing an infinite loop, which is why Griddler was getting called. Be sure to handle that edge case everyone ;)