Exception: Graphiti::Errors::ImplicitFilterTypeMissing
- Defined in:
- lib/graphiti/errors.rb
Instance Method Summary collapse
-
#initialize(resource_class, name) ⇒ ImplicitFilterTypeMissing
constructor
A new instance of ImplicitFilterTypeMissing.
- #message ⇒ Object
Constructor Details
#initialize(resource_class, name) ⇒ ImplicitFilterTypeMissing
Returns a new instance of ImplicitFilterTypeMissing.
522 523 524 525 |
# File 'lib/graphiti/errors.rb', line 522 def initialize(resource_class, name) @resource_class = resource_class @name = name end |
Instance Method Details
#message ⇒ Object
527 528 529 530 531 532 533 534 535 536 537 |
# File 'lib/graphiti/errors.rb', line 527 def <<~MSG Tried to add filter-only attribute #{@name.inspect}, but type was missing! If you are adding a filter that does not have a corresponding attribute, you must pass a type: filter :name, :string do <--- like this # ... code ... end MSG end |