[ci skip] Fix method documentation location
This commit is contained in:
parent
6616cb866e
commit
67b8f92743
@ -54,6 +54,8 @@ class Preloader #:nodoc:
|
|||||||
autoload :BelongsTo, 'active_record/associations/preloader/belongs_to'
|
autoload :BelongsTo, 'active_record/associations/preloader/belongs_to'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
NULL_RELATION = Struct.new(:values, :where_clause, :joins_values).new({}, Relation::WhereClause.empty, [])
|
||||||
|
|
||||||
# Eager loads the named associations for the given Active Record record(s).
|
# Eager loads the named associations for the given Active Record record(s).
|
||||||
#
|
#
|
||||||
# In this description, 'association name' shall refer to the name passed
|
# In this description, 'association name' shall refer to the name passed
|
||||||
@ -88,9 +90,6 @@ class Preloader #:nodoc:
|
|||||||
# [ :books, :author ]
|
# [ :books, :author ]
|
||||||
# { author: :avatar }
|
# { author: :avatar }
|
||||||
# [ :books, { author: :avatar } ]
|
# [ :books, { author: :avatar } ]
|
||||||
|
|
||||||
NULL_RELATION = Struct.new(:values, :where_clause, :joins_values).new({}, Relation::WhereClause.empty, [])
|
|
||||||
|
|
||||||
def preload(records, associations, preload_scope = nil)
|
def preload(records, associations, preload_scope = nil)
|
||||||
records = Array.wrap(records).compact.uniq
|
records = Array.wrap(records).compact.uniq
|
||||||
associations = Array.wrap(associations)
|
associations = Array.wrap(associations)
|
||||||
|
Loading…
Reference in New Issue
Block a user