Exception: Graphiti::Errors::ModelNotFound
- Defined in:
- lib/graphiti/errors.rb
Instance Method Summary collapse
-
#initialize(resource_class) ⇒ ModelNotFound
constructor
A new instance of ModelNotFound.
- #message ⇒ Object
Constructor Details
#initialize(resource_class) ⇒ ModelNotFound
Returns a new instance of ModelNotFound.
543 544 545 |
# File 'lib/graphiti/errors.rb', line 543 def initialize(resource_class) @resource_class = resource_class end |
Instance Method Details
#message ⇒ Object
547 548 549 550 551 552 553 |
# File 'lib/graphiti/errors.rb', line 547 def <<~MSG Could not find model for Resource '#{@resource_class}' Manually set model (self.model = MyModel) if it does not match name of the Resource. MSG end |