diff --git a/lib/tire/results/collection.rb b/lib/tire/results/collection.rb index 6fbb3ac2..d66c963d 100644 --- a/lib/tire/results/collection.rb +++ b/lib/tire/results/collection.rb @@ -153,7 +153,7 @@ def __get_results_with_load(hits) end def __find_records_by_ids(klass, ids) - @options[:load] === true ? klass.find(ids) : klass.find(ids, @options[:load]) + @options[:load] === true ? klass.find(ids) : klass.includes(@options[:load].symbolize_keys[:include]).find(ids) end end