Method: Graphiti::Resource::Configuration::Overrides#model
- Defined in:
- lib/graphiti/resource/configuration.rb
#model ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/graphiti/resource/configuration.rb', line 49 def model klass = super unless klass || abstract_class? if (klass = infer_model) self.model = klass else raise Errors::ModelNotFound.new(self) end end klass end |