Is there a simple way of telling Devise to send all email via delayed_job?
A:
I have no idea what Devise is but I guess it is third-party gem you don't want to modify. Try delayed_job_mailer. You can extend Devise mailers by monkey patching them to use delayed_job.
class SomeExistingMailer
include Delayed::Mailer
end
or if you want to send all app emails via delayed job by default:
# config/initializers/delayed_mailer.rb
class ActionMailer::Base
include Delayed::Mailer
end
gertas
2010-09-18 16:10:44