We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ac7334 commit 46a69f1Copy full SHA for 46a69f1
lib/meilisearch/client.rb
@@ -4,13 +4,12 @@
4
5
module MeiliSearch
6
class Client < HTTPRequest
7
+ ### INDEXES
8
9
def raw_indexes
10
http_get('/indexes')
11
end
12
- ### INDEXES
13
-
14
def indexes
15
raw_indexes.map do |info|
16
index_object(info['uid'], info['primaryKey'])
spec/support/indexes_helpers.rb
@@ -3,7 +3,7 @@
3
module IndexesHelpers
def clear_all_indexes(client)
indexes = client.indexes
- uids = indexes.map { |index| index.uid }
+ uids = indexes.map(&:uid)
uids.each do |uid|
client.delete_index(uid)
0 commit comments