Merge branch 'master' of ssh://51.254.143.84:9319/home/git/pdfshop

This commit is contained in:
Adrian Hinz 2018-06-04 13:25:42 +02:00
commit af5a65fa70
1 changed files with 1 additions and 1 deletions

View File

@ -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} <kaktusiarnia.rumia@gmail.com>",
to: ss.shop_owners_emails,