From 1ac1459b0f1c257bef410f166c2ffc90bf36deca Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 18 Sep 2018 16:31:16 -0700 Subject: More scalable name! There'll probably be other concerns we need to do around the processing. --- lib/action_mailroom/mailbox.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/action_mailroom') diff --git a/lib/action_mailroom/mailbox.rb b/lib/action_mailroom/mailbox.rb index 7f16165221..44dcd691b1 100644 --- a/lib/action_mailroom/mailbox.rb +++ b/lib/action_mailroom/mailbox.rb @@ -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! -- cgit v1.2.3