1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailbox/app/models/action_mailbox/record.rb
George Claghorn 11738e82cd Extract ActionMailbox::Record
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
2020-09-29 11:59:14 -04:00

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