Skip to content

Commit 6633eff

Browse files
authored
Fix for ruby < 2.7
1 parent 10640ca commit 6633eff

File tree

1 file changed

+1
-1
lines changed
  • elasticsearch-model/lib/elasticsearch/model/adapters

1 file changed

+1
-1
lines changed

elasticsearch-model/lib/elasticsearch/model/adapters/multiple.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __records_for_klass(klass, ids)
7373
# Allow calling `.records()` with options:
7474
# klass.name => [{ method: :includes, args: [:association]}, { method: :scope_name }]
7575
if (klass_options = @options.dig(klass.name))
76-
klass_options.each { klass = klass.public_send(_1[:method], *_1[:args]) }
76+
klass_options.each { |opts| klass = klass.public_send(opts[:method], *opts[:args]) }
7777
end
7878

7979
case

0 commit comments

Comments
 (0)