Exception: Carload::UnmanagedModelError

Inherits:
Error
  • Object
show all
Defined in:
lib/carload/exceptions.rb

Instance Attribute Summary

Attributes inherited from Error

#message

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ UnmanagedModelError



7
8
9
# File 'lib/carload/exceptions.rb', line 7

def initialize data
  @message = I18n.t('carload.error.message.unmanaged_model', model: data)
end