1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailbox/lib/action_mailbox.rb
Yurii Rashkovskii 855e08d22d Problem: ActionMailbox uses default ActiveStorage service
This is imperfect in situations when a separation
between regular files (such as uploads) and emails
is necessary (for the purposes of regulatory compliance,
proper compartmentalization, etc.)

Solution: allow configuring ActionMailbox's storage service
2021-06-30 09:33:29 -07:00

18 lines
403 B
Ruby

# frozen_string_literal: true
require "action_mailbox/mail_ext"
module ActionMailbox
extend ActiveSupport::Autoload
autoload :Base
autoload :Router
autoload :TestCase
mattr_accessor :ingress
mattr_accessor :logger
mattr_accessor :incinerate, default: true
mattr_accessor :incinerate_after, default: 30.days
mattr_accessor :queues, default: {}
mattr_accessor :storage_service
end