Method: ActiveData::AssociationTypeMismatch#initialize

Defined in:
lib/active_data/errors.rb

#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