blob: e9f0c78e0faf70d8c261f03dd507d0b5636aa3fa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
class ActionMailbox::IncinerationJob < ApplicationJob
queue_as :action_mailbox_incineration
def self.schedule(inbound_email)
set(wait: ActionMailbox.incinerate_after).perform_later(inbound_email)
end
def perform(inbound_email)
inbound_email.incinerate
end
end
|