Exception: ActiveData::AssociationTypeMismatch

Inherits:
ActiveDataError show all
Defined in:
lib/active_data/errors.rb

Instance Method Summary collapse

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