Skip to content

Commit

Permalink
Remove unneeded save call
Browse files Browse the repository at this point in the history
  • Loading branch information
BlaineIrvin committed Aug 15, 2024
1 parent 6ac38d1 commit 6cca13c
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6cca13c

Please sign in to comment.