diff --git a/lib/generators/chromium/pdf/install/templates/app/jobs/generate_pdf_job.rb b/lib/generators/chromium/pdf/install/templates/app/jobs/generate_pdf_job.rb index 1ab943b..0b75bdf 100644 --- a/lib/generators/chromium/pdf/install/templates/app/jobs/generate_pdf_job.rb +++ b/lib/generators/chromium/pdf/install/templates/app/jobs/generate_pdf_job.rb @@ -28,7 +28,6 @@ def perform(model) generate_pdf!(model.filename, model.print_url) do |file, filename| # What to do with the generated file model.attachment.attach(io: File.open(file.path), filename: filename, content_type: 'application/pdf') - model.save end end end