diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2018-09-18 17:27:52 -0700 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2018-09-18 17:27:52 -0700 |
commit | d1329efd815ea0be1d666b0c2b4664349a77e1a0 (patch) | |
tree | c23d74d4fefbe7d4d65c6eaeaed3814d0a634725 /app | |
parent | 0e00529e04d7c870ffd88b00a6e0357d2787efed (diff) | |
download | rails-d1329efd815ea0be1d666b0c2b4664349a77e1a0.tar.gz rails-d1329efd815ea0be1d666b0c2b4664349a77e1a0.tar.bz2 rails-d1329efd815ea0be1d666b0c2b4664349a77e1a0.zip |
Inherit from ActiveJob::Base rather than ApplicationJob
Don't want to trigger app-specific behavior here.
Diffstat (limited to 'app')
-rw-r--r-- | app/jobs/action_mailroom/deliver_inbound_email_to_mailroom_job.rb | 9 | ||||
-rw-r--r-- | app/models/jobs/action_mailroom/deliver_inbound_email_to_mailroom_job.rb | 7 |
2 files changed, 9 insertions, 7 deletions
diff --git a/app/jobs/action_mailroom/deliver_inbound_email_to_mailroom_job.rb b/app/jobs/action_mailroom/deliver_inbound_email_to_mailroom_job.rb new file mode 100644 index 0000000000..835d26213a --- /dev/null +++ b/app/jobs/action_mailroom/deliver_inbound_email_to_mailroom_job.rb @@ -0,0 +1,9 @@ +module ActionMailroom + class DeliverInboundEmailToMailroomJob < ActiveJob::Base + queue_as :rails_action_mailroom_inbound_email + + def perform(inbound_email) + # ActionMailroom::Router.receive inbound_email + end + end +end diff --git a/app/models/jobs/action_mailroom/deliver_inbound_email_to_mailroom_job.rb b/app/models/jobs/action_mailroom/deliver_inbound_email_to_mailroom_job.rb deleted file mode 100644 index 71544c3ef1..0000000000 --- a/app/models/jobs/action_mailroom/deliver_inbound_email_to_mailroom_job.rb +++ /dev/null @@ -1,7 +0,0 @@ -class ActionMailroom::DeliverInboundEmailToMailroomJob < ApplicationJob - queue_as :rails_action_mailroom_inbound_email - - def perform(inbound_email) - ActionMailroom::Router.receive inbound_email - end -end |