Exception: ActiveData::AssociationTypeMismatch
- Inherits:
-
ActiveDataError
- Object
- StandardError
- ActiveDataError
- ActiveData::AssociationTypeMismatch
- Defined in:
- lib/active_data/errors.rb
Instance Method Summary collapse
-
#initialize(expected, got) ⇒ AssociationTypeMismatch
constructor
A new instance of AssociationTypeMismatch.
Constructor Details
#initialize(expected, got) ⇒ AssociationTypeMismatch
Returns a new instance of AssociationTypeMismatch.
35 36 37 |
# File 'lib/active_data/errors.rb', line 35 def initialize(expected, got) super "Expected `#{expected}` (##{expected.object_id}), but got `#{got}` (##{got.object_id})" end |