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:
parent
0e00529e04
commit
d1329efd81
2 changed files with 9 additions and 7 deletions
|
@ -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
|
|
@ -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
|
Loading…
Reference in a new issue