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 10640ca commit 6633effCopy full SHA for 6633eff
elasticsearch-model/lib/elasticsearch/model/adapters/multiple.rb
@@ -73,7 +73,7 @@ def __records_for_klass(klass, ids)
73
# Allow calling `.records()` with options:
74
# klass.name => [{ method: :includes, args: [:association]}, { method: :scope_name }]
75
if (klass_options = @options.dig(klass.name))
76
- klass_options.each { klass = klass.public_send(_1[:method], *_1[:args]) }
+ klass_options.each { |opts| klass = klass.public_send(opts[:method], *opts[:args]) }
77
end
78
79
case
0 commit comments