1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

docs, nodoc NullPreloader and AlreadyLoaded.

These classes are part of Active Record Preloader, which is not part of
the public API.
This commit is contained in:
Yves Senn 2015-06-29 14:47:11 +02:00
parent 3cd0530df6
commit 5aee168e73

View file

@ -160,7 +160,7 @@ module ActiveRecord
h
end
class AlreadyLoaded
class AlreadyLoaded # :nodoc:
attr_reader :owners, :reflection
def initialize(klass, owners, reflection, preload_scope)
@ -175,7 +175,7 @@ module ActiveRecord
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