提交 d81fbe22 编写于 作者: S schneems

[ci skip] Clarify doc for preloaders_for_one

上级 3a6872c4
......@@ -132,6 +132,11 @@ def preloaders_for_hash(association, records, scope)
}
end
# Loads all the given data into +records+ for a singular +association+.
#
# Functions by instantiating a preloader class such as Preloader::HasManyThrough and
# call the +run+ method for each passed in class in the +records+ argument.
#
# Not all records have the same class, so group then preload group on the reflection
# itself so that if various subclass share the same association then we do not split
# them unnecessarily
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册