Skip to content

Commit 71b4ed9

Browse files
tpitaletylerjl
authored andcommitted
[MODEL] Fix reference to @ids in example and README
There is a method called `ids` which collections the ids from hits: https://github.com/elasticsearch/elasticsearch-rails/blob/104f91f24ba8d3dc7629b0eaf058329dc2cdc08c/elasticsearch-model/lib/elasticsearch/model/response/records.rb#L33 Closes elastic#212
1 parent c989def commit 71b4ed9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

elasticsearch-model/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ module DataMapperAdapter
674674
#
675675
module Records
676676
def records
677-
klass.all(id: @ids)
677+
klass.all(id: ids)
678678
end
679679

680680
# ...

elasticsearch-model/examples/datamapper_article.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module DataMapperAdapter
5050
#
5151
module Records
5252
def records
53-
klass.all(id: @ids)
53+
klass.all(id: ids)
5454
end
5555

5656
# ...

0 commit comments

Comments
 (0)