Exception: RailsTransactionalOutbox::RecordProcessors::ActiveRecordProcessor::CouldNotFindModelError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rails_transactional_outbox/record_processors/active_record_processor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record) ⇒ CouldNotFindModelError

Returns a new instance of CouldNotFindModelError.



33
34
35
36
# File 'lib/rails_transactional_outbox/record_processors/active_record_processor.rb', line 33

def initialize(record)
  super()
  @record = record
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



31
32
33
# File 'lib/rails_transactional_outbox/record_processors/active_record_processor.rb', line 31

def record
  @record
end

Instance Method Details

#to_sObject



38
39
40
# File 'lib/rails_transactional_outbox/record_processors/active_record_processor.rb', line 38

def to_s
  "could not find model for outbox record: #{record.id}"
end