I have a Rails 3 App using Devise on Heroku. Problem is I’m sending emails with Sendgrid and email delivery is slow, it makes the app hang. So I’m interested in using delayed_job to queue the email delivery in the background so my app is responsive to the user.
How can Devise be used with delayed_job? Any way to setup Devise to use delayed_job?
From Robert May: https://gist.github.com/659514
Add this to a file in
config/initializersdirectory: