Exception: Granite::Form::AssociationTypeMismatch
- Defined in:
- lib/granite/form/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.
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 |