aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorschneems <richard.schneeman@gmail.com>2015-10-26 11:35:45 -0500
committerschneems <richard.schneeman@gmail.com>2015-10-26 11:36:12 -0500
commit67b8f92743273370beca4d9c089ed9412fbfe940 (patch)
tree899c96daced272a1d8c017b396a30770ae5ba55d /activerecord
parent6616cb866eaf68e44dfd3324ffd543c9ce16869c (diff)
downloadrails-67b8f92743273370beca4d9c089ed9412fbfe940.tar.gz
rails-67b8f92743273370beca4d9c089ed9412fbfe940.tar.bz2
rails-67b8f92743273370beca4d9c089ed9412fbfe940.zip
[ci skip] Fix method documentation location
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations/preloader.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/associations/preloader.rb b/activerecord/lib/active_record/associations/preloader.rb
index 3992a240b9..7ac99bc5c6 100644
--- a/activerecord/lib/active_record/associations/preloader.rb
+++ b/activerecord/lib/active_record/associations/preloader.rb
@@ -54,6 +54,8 @@ module ActiveRecord
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 @@ module ActiveRecord
# [ :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)