diff options
author | schneems <richard.schneeman@gmail.com> | 2015-10-26 11:35:45 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2015-10-26 11:36:12 -0500 |
commit | 67b8f92743273370beca4d9c089ed9412fbfe940 (patch) | |
tree | 899c96daced272a1d8c017b396a30770ae5ba55d /activerecord | |
parent | 6616cb866eaf68e44dfd3324ffd543c9ce16869c (diff) | |
download | rails-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.rb | 5 |
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) |