From 31319fe3f394e8edceefc072717f7f35aaefd335 Mon Sep 17 00:00:00 2001 From: Adrian Hinz Date: Sat, 2 Jun 2018 09:28:05 +0200 Subject: [PATCH] om --- app/mailers/order_mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mailers/order_mailer.rb b/app/mailers/order_mailer.rb index 5819802..c7cdb1f 100644 --- a/app/mailers/order_mailer.rb +++ b/app/mailers/order_mailer.rb @@ -14,7 +14,7 @@ class OrderMailer < ApplicationMailer ss = ScSetting.first otp = OrderToPdf.new(@order) attachments[otp.file_name] = otp.call - sleep(5) + sleep(5) #to make sure pdf file saved on the disk mail(subject: "Nowe zamówienie nr: #{@order.beauty_id}", from: "#{ss.shop_name} ", to: ss.shop_owners_emails)