W3cubDocs

/Ruby on Rails 7.0

module ActionMailbox::Routing

See ActionMailbox::Base for how to specify routing.

Public Instance Methods

mailbox_for(inbound_email) Show source
# File actionmailbox/lib/action_mailbox/routing.rb, line 21
def mailbox_for(inbound_email)
  router.mailbox_for(inbound_email)
end
route(inbound_email) Show source
# File actionmailbox/lib/action_mailbox/routing.rb, line 17
def route(inbound_email)
  router.route(inbound_email)
end
routing(routes) Show source
# File actionmailbox/lib/action_mailbox/routing.rb, line 13
def routing(routes)
  router.add_routes(routes)
end

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.