aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/action_mailroom/router.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/action_mailroom/router.rb b/lib/action_mailroom/router.rb
index c3fa183438..fb0b638978 100644
--- a/lib/action_mailroom/router.rb
+++ b/lib/action_mailroom/router.rb
@@ -16,7 +16,7 @@ class ActionMailroom::Router
end
def route(inbound_email)
- if mailbox = locate_mailbox(inbound_email)
+ if mailbox = match_to_mailbox(inbound_email)
mailbox.receive(inbound_email)
else
raise RoutingError
@@ -26,7 +26,7 @@ class ActionMailroom::Router
private
attr_reader :routes
- def locate_mailbox(inbound_email)
+ def match_to_mailbox(inbound_email)
routes.detect { |route| route.match?(inbound_email) }.try(:mailbox_class)
end
end