Created
October 11, 2013 19:54
-
-
Save braidn/6941004 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Quarterly | |
class GiftMailer < Spree::BaseMailer | |
def send_it(user, order, plan) | |
@user, @order, @plan = user, order, plan | |
subject = "#{Spree::Config[:site_name]} Your gift from #{@plan.name}" | |
mail(to: @order.gift_email, from: from_address, subject: subject) | |
end | |
handle_asynchronously :send_it, | |
:run_at => Proc.new { 2.minutes.from_now } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment