提交 5aee168e 编写于 作者: Y Yves Senn

docs, nodoc `NullPreloader` and `AlreadyLoaded`.

These classes are part of Active Record Preloader, which is not part of
the public API.
上级 3cd0530d
......@@ -160,7 +160,7 @@ def grouped_records(association, records)
h
end
class AlreadyLoaded
class AlreadyLoaded # :nodoc:
attr_reader :owners, :reflection
def initialize(klass, owners, reflection, preload_scope)
......@@ -175,7 +175,7 @@ def preloaded_records
end
end
class NullPreloader
class NullPreloader # :nodoc:
def self.new(klass, owners, reflection, preload_scope); self; end
def self.run(preloader); end
def self.preloaded_records; []; end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册