提交 35f5938c 编写于 作者: A Aaron Patterson

probably should use the some_ids variable here. o_O

上级 3e643366
......@@ -216,7 +216,7 @@ def preload_has_and_belongs_to_many_association(records, reflection, preload_opt
order(options[:order])
all_associated_records = associated_records(ids) do |some_ids|
associated_records_proxy.where([conditions, ids]).to_a
associated_records_proxy.where([conditions, some_ids]).to_a
end
set_association_collection_records(id_to_record_map, reflection.name, all_associated_records, 'the_parent_record_id')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册