1
0
Fork 0
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:
David Heinemeier Hansson 2018-09-18 16:31:16 -07:00
parent 4d428e078e
commit 1ac1459b0f

View file

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