otwa-aggie/app/jobs/report_attachment_job.rb
2026-08-13 00:44:25 -04:00

7 lines
285 B
Ruby

class ReportAttachmentJob < ApplicationJob
def perform(ticket_id, work)
download = Download.new(work, mime_type: "text/html")
html = DownloadWriter.new(download).generate_html
FeedbackReporter.new.send_attachment!(ticket_id, "#{download.file_name}.html", html)
end
end