lib/drill/mail/letter_opener.rb in drill-mailer-0.1.0 vs lib/drill/mail/letter_opener.rb in drill-mailer-0.1.1
- old
+ new
@@ -24,9 +24,11 @@
prepare_mail!
delivery_method.deliver!(mail)
end
+ alias_method :deliver_later, :deliver
+
private
def prepare_mail!
mail.to = Array(params.to) + Array(params.cc)
mail.from = params.from_email