Method: Elasticsearch::Model::Adapter::Default::Records#records

Defined in:
lib/elasticsearch/model/adapters/default.rb

#recordsObject

Return the collection of records fetched from the database

By default uses ‘MyModel#find[1, 2, 3]`


31
32
33
# File 'lib/elasticsearch/model/adapters/default.rb', line 31

def records
  klass.find(@ids)
end