diff options
Diffstat (limited to 'actionmailbox/app/jobs/action_mailbox/routing_job.rb')
-rw-r--r-- | actionmailbox/app/jobs/action_mailbox/routing_job.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/actionmailbox/app/jobs/action_mailbox/routing_job.rb b/actionmailbox/app/jobs/action_mailbox/routing_job.rb index fc3388daff..4ddf6e4231 100644 --- a/actionmailbox/app/jobs/action_mailbox/routing_job.rb +++ b/actionmailbox/app/jobs/action_mailbox/routing_job.rb @@ -1,11 +1,13 @@ # frozen_string_literal: true -# Routing a new InboundEmail is an asynchronous operation, which allows the ingress controllers to quickly -# accept new incoming emails without being burdened to hang while they're actually being processed. -class ActionMailbox::RoutingJob < ActiveJob::Base - queue_as { ActionMailbox.queues[:routing] } +module ActionMailbox + # Routing a new InboundEmail is an asynchronous operation, which allows the ingress controllers to quickly + # accept new incoming emails without being burdened to hang while they're actually being processed. + class RoutingJob < ActiveJob::Base + queue_as { ActionMailbox.queues[:routing] } - def perform(inbound_email) - inbound_email.route + def perform(inbound_email) + inbound_email.route + end end end |