Sha256: 175ffa19077e6613ce83e79582cb255dbef4d65c4f1405b4cbcb0b923f2f2f9b

Contents?: true

Size: 439 Bytes

Versions: 39

Compression:

Stored size: 439 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
    end
  end
end

Version data entries

39 entries across 39 versions & 4 rubygems

Version Path
actionmailbox-6.0.6.1 lib/action_mailbox/routing.rb
actionmailbox-6.0.6 lib/action_mailbox/routing.rb
actionmailbox-6.0.5.1 lib/action_mailbox/routing.rb
actionmailbox-6.0.5 lib/action_mailbox/routing.rb
actionmailbox-6.0.4.8 lib/action_mailbox/routing.rb
actionmailbox-6.0.4.7 lib/action_mailbox/routing.rb
actionmailbox-6.0.4.6 lib/action_mailbox/routing.rb
actionmailbox-6.0.4.5 lib/action_mailbox/routing.rb
actionmailbox-6.0.4.4 lib/action_mailbox/routing.rb
actionmailbox-6.0.4.3 lib/action_mailbox/routing.rb
actionmailbox-6.0.4.2 lib/action_mailbox/routing.rb
actionmailbox-6.0.4.1 lib/action_mailbox/routing.rb
actionmailbox-6.0.4 lib/action_mailbox/routing.rb
actionmailbox-6.0.3.7 lib/action_mailbox/routing.rb
actionmailbox-6.0.3.6 lib/action_mailbox/routing.rb
actionmailbox-6.0.3.5 lib/action_mailbox/routing.rb
actionmailbox-6.0.3.4 lib/action_mailbox/routing.rb
actionmailbox-6.0.3.3 lib/action_mailbox/routing.rb
actionmailbox-6.0.3.2 lib/action_mailbox/routing.rb
actionmailbox-6.0.3.1 lib/action_mailbox/routing.rb