Skip to content

Commit f90a66d

Browse files
authored
Update multiple.rb
1 parent 67afff0 commit f90a66d

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
@@ -72,7 +72,7 @@ def __records_for_klass(klass, ids)
7272

7373
# Allow calling `.records()` with options:
7474
# ex: `klass.name => [{ method: :includes, args: [:association]}, { method: :scope_name }]`
75-
if (klass_options = options&.dig(klass.name))
75+
if (klass_options = @options&.dig(klass.name))
7676
klass_options.each { |opts| klass = klass.public_send(opts[:method], *opts[:args]) }
7777
end
7878

0 commit comments

Comments
 (0)