Module: Elasticsearch::Model::Adapter::Default::Records

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

Overview

Module for implementing methods and logic related to fetching records from the database

Instance Method Summary collapse

Instance Method Details

#recordsObject

Return the collection of records fetched from the database

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



34
35
36
# File 'lib/elasticsearch/model/adapters/default.rb', line 34

def records
  klass.find(@ids)
end