Exception: ActiveOutbox::OutboxClassNotFoundError

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

Instance Method Summary collapse

Instance Method Details

#messageObject



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

def message
  <<~MESSAGE
    Missing Outbox class definition. Configure mapping in `config/initializers/active_outbox.rb`:

    Rails.application.reloader.to_prepare do
      ActiveOutbox.configure do |config|
        config.outbox_mapping = {
          'default' => <outbox model name>
        }
      end
    end
  MESSAGE
end