Module: ActionMailbox::InboundEmail::Incineratable

Extended by:
ActiveSupport::Concern
Included in:
ActionMailbox::InboundEmail
Defined in:
app/models/action_mailbox/inbound_email/incineratable.rb

Overview

Ensure that the ‘InboundEmail` is automatically scheduled for later incineration if the status has been changed to `processed`. The later incineration will be invoked at the time specified by the `ActionMailbox.incinerate_after` time using the `IncinerationJob`.

Defined Under Namespace

Classes: Incineration

Instance Method Summary collapse

Instance Method Details

#incinerateObject



15
16
17
# File 'app/models/action_mailbox/inbound_email/incineratable.rb', line 15

def incinerate
  Incineration.new(self).run
end

#incinerate_laterObject



11
12
13
# File 'app/models/action_mailbox/inbound_email/incineratable.rb', line 11

def incinerate_later
  ActionMailbox::IncinerationJob.schedule self
end