Module: ActionMailbox::InboundEmail::Routable
- Extended by:
- ActiveSupport::Concern
- Included in:
- ActionMailbox::InboundEmail
- Defined in:
- app/models/action_mailbox/inbound_email/routable.rb
Overview
A newly received ‘InboundEmail` will not be routed synchronously as part of ingress controller’s receival. Instead, the routing will be done asynchronously, using a ‘RoutingJob`, to ensure maximum parallel capacity.
By default, all newly created ‘InboundEmail` records that have the status of `pending`, which is the default, will be scheduled for automatic, deferred routing.
Instance Method Summary collapse
-
#route ⇒ Object
Route this ‘InboundEmail` using the routing rules declared on the `ApplicationMailbox`.
-
#route_later ⇒ Object
Enqueue a ‘RoutingJob` for this `InboundEmail`.
Instance Method Details
#route ⇒ Object
Route this ‘InboundEmail` using the routing rules declared on the `ApplicationMailbox`.
19 20 21 |
# File 'app/models/action_mailbox/inbound_email/routable.rb', line 19 def route ApplicationMailbox.route self end |
#route_later ⇒ Object
Enqueue a ‘RoutingJob` for this `InboundEmail`.
14 15 16 |
# File 'app/models/action_mailbox/inbound_email/routable.rb', line 14 def route_later ActionMailbox::RoutingJob.perform_later self end |