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
-
#records ⇒ Object
Return the collection of records fetched from the database.
Instance Method Details
#records ⇒ Object
Return the collection of records fetched from the database
By default uses ‘MyModel#find[1, 2, 3]`
17 18 19 |
# File 'lib/elasticsearch/model/adapters/default.rb', line 17 def records klass.find(@ids) end |