Exception: Graphiti::Errors::ModelNotFound

Inherits:
Base
  • Object
show all
Defined in:
lib/graphiti/errors.rb

Instance Method Summary collapse

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

#messageObject



561
562
563
564
565
566
567
# File 'lib/graphiti/errors.rb', line 561

def message
  "    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"