Exception: ActiveOutbox::OutboxClassNotFoundError

Inherits:
OutboxConfigurationError show all
Defined in:
lib/active_outbox/errors.rb

Instance Method Summary collapse

Instance Method Details

#messageObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/active_outbox/errors.rb', line 6

def message
  <<~MESSAGE
Missing Outbox class definition in module. Use `rails generate outbox <outbox model name>`.
Define default class in `config/initializers/active_outbox.rb`:

Rails.application.reloader.to_prepare do
  ActiveOutbox.configure do |config|
config.outbox_mapping = {
  'Default' => <outbox model name>,
  'Meetings' => 'Meetings::Outbox'
}
  end
end
MESSAGE
end