diff --git a/app/mailers/order_mailer.rb b/app/mailers/order_mailer.rb index 2f67aae..9b9a8e2 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,