Method: JSONAPI::Resource.records

Defined in:
lib/jsonapi/resource.rb

.records(_options = {}) ⇒ Object

Override this method if you want to customize the relation for finder methods (find, find_by_key)



773
774
775
# File 'lib/jsonapi/resource.rb', line 773

def records(_options = {})
  _model_class.all
end