lib/drill/mail/default.rb in drill-mailer-0.1.0 vs lib/drill/mail/default.rb in drill-mailer-0.1.1
- old
+ new
@@ -9,9 +9,15 @@
template_name = params.template_name
Drill.client.messages.send_template(template_name, [], message_hash)
end
+ def deliver_later
+ template_name = params.template_name
+
+ Drill::DeliveryWorker.perform_async(template_name, message_hash)
+ end
+
private
def message_hash
message_hash = {}