mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
620ba4c12a
Use `+` instead of backquote.
22 lines
439 B
Ruby
22 lines
439 B
Ruby
# 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
|