1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Inherit from ActiveJob::Base rather than ApplicationJob

Don't want to trigger app-specific behavior here.
This commit is contained in:
David Heinemeier Hansson 2018-09-18 17:27:52 -07:00
parent 0e00529e04
commit d1329efd81
2 changed files with 9 additions and 7 deletions

View file

@ -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

View file

@ -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