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
557 558 559 |
# File 'lib/graphiti/errors.rb', line 557 def initialize(resource_class) @resource_class = resource_class end |
Instance Method Details
#message ⇒ Object
561 562 563 564 565 566 567 |
# File 'lib/graphiti/errors.rb', line 561 def " Could not find model for Resource '\#{@resource_class}'\n\n Manually set model (self.model = MyModel) if it does not match name of the Resource.\n MSG\nend\n" |