Class: NotificationWorkers::DeleteVoucherReport

Inherits:
ApplicationWorker show all
Defined in:
app/workers/notification_workers/delete_voucher_report.rb

Overview

typed: ignore frozen_string_literal: true

Instance Method Summary collapse

Methods inherited from ApplicationWorker

unlimited_retry

Instance Method Details

#perform(attachment) ⇒ Object



5
6
7
# File 'app/workers/notification_workers/delete_voucher_report.rb', line 5

def perform(attachment)
  Attachment.find(attachment).destroy!
end