aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/jobs/action_mailbox/routing_job.rb2
-rw-r--r--app/models/action_mailbox/inbound_email/routable.rb4
2 files changed, 5 insertions, 1 deletions
diff --git a/app/jobs/action_mailbox/routing_job.rb b/app/jobs/action_mailbox/routing_job.rb
index a2618bb8aa..af4aa9f8fa 100644
--- a/app/jobs/action_mailbox/routing_job.rb
+++ b/app/jobs/action_mailbox/routing_job.rb
@@ -2,6 +2,6 @@ class ActionMailbox::RoutingJob < ActiveJob::Base
queue_as :action_mailbox_routing
def perform(inbound_email)
- ApplicationMailbox.route inbound_email
+ inbound_email.route
end
end
diff --git a/app/models/action_mailbox/inbound_email/routable.rb b/app/models/action_mailbox/inbound_email/routable.rb
index 1928f9e387..48b357af45 100644
--- a/app/models/action_mailbox/inbound_email/routable.rb
+++ b/app/models/action_mailbox/inbound_email/routable.rb
@@ -8,4 +8,8 @@ module ActionMailbox::InboundEmail::Routable
def route_later
ActionMailbox::RoutingJob.perform_later self
end
+
+ def route
+ ApplicationMailbox.route self
+ end
end