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.
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 |