Skip to content

Instantly share code, notes, and snippets.

@ilake
Created January 27, 2012 05:04
Show Gist options
  • Select an option

  • Save ilake/1687098 to your computer and use it in GitHub Desktop.

Select an option

Save ilake/1687098 to your computer and use it in GitHub Desktop.

Revisions

  1. ilake revised this gist Jan 27, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions sorcery_async_email.rb
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    #config/initializers/sorcery_async_email.rb
    module Sorcery
    module InstanceMethods
    def generic_send_email(method, mailer)
  2. ilake created this gist Jan 27, 2012.
    9 changes: 9 additions & 0 deletions sorcery_async_email.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    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