Skip to content

Commit 46a69f1

Browse files
committed
Address requested changes
1 parent 3ac7334 commit 46a69f1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/meilisearch/client.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44

55
module MeiliSearch
66
class Client < HTTPRequest
7+
### INDEXES
78

89
def raw_indexes
910
http_get('/indexes')
1011
end
1112

12-
### INDEXES
13-
1413
def indexes
1514
raw_indexes.map do |info|
1615
index_object(info['uid'], info['primaryKey'])

spec/support/indexes_helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module IndexesHelpers
44
def clear_all_indexes(client)
55
indexes = client.indexes
6-
uids = indexes.map { |index| index.uid }
6+
uids = indexes.map(&:uid)
77
uids.each do |uid|
88
client.delete_index(uid)
99
end

0 commit comments

Comments
 (0)