mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
11738e82cd
Permit applications to hack in custom DB config for ActionMailbox::InboundEmail until Action Mailbox has first-class multi-DB support: ActiveSupport.on_load(:action_mailbox_record) do connects_to reading: :action_mailbox_replica, writing: :action_mailbox_primary end
9 lines
214 B
Ruby
9 lines
214 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ActionMailbox
|
|
class Record < ActiveRecord::Base #:nodoc:
|
|
self.abstract_class = true
|
|
end
|
|
end
|
|
|
|
ActiveSupport.run_load_hooks :action_mailbox_record, ActionMailbox::Record
|