提交 eeda42fc 编写于 作者: A Aaron Patterson

use the API rather than accessing underlying data structures

上级 c04a8192
......@@ -135,7 +135,7 @@ def join_base
def remove_duplicate_results!(base, records, associations)
associations.each_key do |name|
reflection = base.reflections[name]
reflection = base.reflect_on_association(name)
remove_uniq_by_reflection(reflection, records)
parent_records = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册