Exception: Granite::Form::AssociationTypeMismatch

Inherits:
Error
  • Object
show all
Defined in:
lib/granite/form/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(expected, got) ⇒ AssociationTypeMismatch

Returns a new instance of AssociationTypeMismatch.



21
22
23
# File 'lib/granite/form/errors.rb', line 21

def initialize(expected, got)
  super "Expected `#{expected}` (##{expected.object_id}), but got `#{got}` (##{got.object_id})"
end