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.



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

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