[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'
|
||||
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).
|
||||
#
|
||||
# In this description, 'association name' shall refer to the name passed
|
||||
@ -88,9 +90,6 @@ class Preloader #:nodoc:
|
||||
# [ :books, :author ]
|
||||
# { 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)
|
||||
records = Array.wrap(records).compact.uniq
|
||||
associations = Array.wrap(associations)
|
||||
|
Loading…
Reference in New Issue
Block a user