aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailbox/lib/action_mailbox/routing.rb
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2019-05-09 23:02:21 -0500
committerGitHub <noreply@github.com>2019-05-09 23:02:21 -0500
commit6394f9da6938d0dccfd8c95f10b2fb7ee98ab953 (patch)
tree366fc7d2a8c064f5c4987c4344d27ba5365a92e8 /actionmailbox/lib/action_mailbox/routing.rb
parent3363a3c2a54ab1796f1a520538820271f977bc71 (diff)
parent937f7d582efc75bae336fbf1de4bd93476ab7f5e (diff)
downloadrails-6394f9da6938d0dccfd8c95f10b2fb7ee98ab953.tar.gz
rails-6394f9da6938d0dccfd8c95f10b2fb7ee98ab953.tar.bz2
rails-6394f9da6938d0dccfd8c95f10b2fb7ee98ab953.zip
Merge pull request #36181 from jamesdabbs/jcd/action-mailbox-for
Expose `mailbox_for` method
Diffstat (limited to 'actionmailbox/lib/action_mailbox/routing.rb')
-rw-r--r--actionmailbox/lib/action_mailbox/routing.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionmailbox/lib/action_mailbox/routing.rb b/actionmailbox/lib/action_mailbox/routing.rb
index 58462a44c6..8391bf9db0 100644
--- a/actionmailbox/lib/action_mailbox/routing.rb
+++ b/actionmailbox/lib/action_mailbox/routing.rb
@@ -17,6 +17,10 @@ module ActionMailbox
def route(inbound_email)
router.route(inbound_email)
end
+
+ def mailbox_for(inbound_email)
+ router.mailbox_for(inbound_email)
+ end
end
end
end