Skip to content

Instantly share code, notes, and snippets.

View stefanobernardi's full-sized avatar

Stefano Bernardi stefanobernardi

View GitHub Profile
@stefanobernardi
stefanobernardi / sorcery_async_email.rb
Created February 27, 2012 02:05 — forked from ilake/sorcery_async_email.rb
Async Emails With Sorcery by delayed_job
#config/initializers/sorcery_async_email.rb
module Sorcery
module InstanceMethods
def generic_send_email(method, mailer)
config = sorcery_config
config.send(mailer).delay.send(config.send(method),self)
end
end
end
end