提交 6a25202d 编写于 作者: S schneems

[ci skip] Add doc for preloader_for

上级 d81fbe22
......@@ -186,6 +186,10 @@ def self.run(preloader); end
def self.preloaded_records; []; end
end
# Returns a class containing the logic needed to load preload the data
# and attach it to a relation. For example +Preloader::Association+ or
# +Preloader::HasManyThrough+. The class returned implements a `run` method
# that accepts a preloader.
def preloader_for(reflection, owners, rhs_klass)
return NullPreloader unless rhs_klass
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册