Sha256: 85a1a340ba20b31e99f1f04b3227273990f50174509a80d5f6b606309bfde7f1

Contents?: true

Size: 527 Bytes

Versions: 63

Compression:

Stored size: 527 Bytes

Contents

# frozen_string_literal: true

module ActionMailbox
  # See ActionMailbox::Base for how to specify routing.
  module Routing
    extend ActiveSupport::Concern

    included do
      cattr_accessor :router, default: ActionMailbox::Router.new
    end

    class_methods do
      def routing(routes)
        router.add_routes(routes)
      end

      def route(inbound_email)
        router.route(inbound_email)
      end

      def mailbox_for(inbound_email)
        router.mailbox_for(inbound_email)
      end
    end
  end
end

Version data entries

63 entries across 62 versions & 7 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/actionmailbox-7.1.3.4/lib/action_mailbox/routing.rb
actionmailbox-8.0.1 lib/action_mailbox/routing.rb
actionmailbox-8.0.0.1 lib/action_mailbox/routing.rb
actionmailbox-7.2.2.1 lib/action_mailbox/routing.rb
actionmailbox-7.1.5.1 lib/action_mailbox/routing.rb
actionmailbox-7.0.8.7 lib/action_mailbox/routing.rb
actionmailbox-8.0.0 lib/action_mailbox/routing.rb
actionmailbox-7.2.2 lib/action_mailbox/routing.rb
actionmailbox-7.1.5 lib/action_mailbox/routing.rb
actionmailbox-8.0.0.rc2 lib/action_mailbox/routing.rb
actionmailbox-7.2.1.2 lib/action_mailbox/routing.rb
actionmailbox-7.1.4.2 lib/action_mailbox/routing.rb
actionmailbox-7.0.8.6 lib/action_mailbox/routing.rb
actionmailbox-8.0.0.rc1 lib/action_mailbox/routing.rb
actionmailbox-7.2.1.1 lib/action_mailbox/routing.rb
actionmailbox-7.1.4.1 lib/action_mailbox/routing.rb
actionmailbox-7.0.8.5 lib/action_mailbox/routing.rb
actionmailbox-8.0.0.beta1 lib/action_mailbox/routing.rb
omg-actionmailbox-8.0.0.alpha9 lib/action_mailbox/routing.rb
omg-actionmailbox-8.0.0.alpha8 lib/action_mailbox/routing.rb