Skip to content

Instantly share code, notes, and snippets.

View armstrjare's full-sized avatar

Jared Armstrong armstrjare

View GitHub Profile
@armstrjare
armstrjare / ActionMailer mail with DelayedJob.rb
Created January 21, 2010 04:01
Simply make Mailer.deliver_xxx_email(args) dispatch to delayed job to send, but still generate the mail content locally.
class DelayedJobMailer
def self.apply!
ActionMailer::Base.class_eval do
class << self
def method_missing_with_delayed_job_mailer(name, *args)