diff --git a/app/controllers/ps_admin/order_controller.rb b/app/controllers/ps_admin/order_controller.rb index 77cf052..2da0114 100644 --- a/app/controllers/ps_admin/order_controller.rb +++ b/app/controllers/ps_admin/order_controller.rb @@ -28,7 +28,7 @@ module PsAdmin def gen_pdf_file otp = OrderToPdf.new(@order).call - send_file otp + send_data otp, filename: otp.file_name end def status_histories