mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
More scalable name!
There'll probably be other concerns we need to do around the processing.
This commit is contained in:
parent
4d428e078e
commit
1ac1459b0f
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ class ActionMailroom::Mailbox
|
|||
|
||||
class << self
|
||||
def receive(inbound_email)
|
||||
new(inbound_email).process_with_state_and_exception_handling
|
||||
new(inbound_email).perform_processing
|
||||
end
|
||||
|
||||
def routing(routes)
|
||||
|
@ -20,7 +20,7 @@ class ActionMailroom::Mailbox
|
|||
@inbound_email = inbound_email
|
||||
end
|
||||
|
||||
def process_with_state_and_exception_handling
|
||||
def perform_processing
|
||||
inbound_email.processing!
|
||||
process
|
||||
inbound_email.delivered!
|
||||
|
|
Loading…
Reference in a new issue