aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAndrew White <pixeltrix@users.noreply.github.com>2016-09-05 13:20:14 +0100
committerGitHub <noreply@github.com>2016-09-05 13:20:14 +0100
commit51c53e19bfbc34c2b3b748786d8b5cc268de1c51 (patch)
tree5ba21d580af7322596bd276e33c3b3fac79bdda0 /activerecord
parent8065b4531afea08de716bebea01b50ee21a41ecd (diff)
parent5047a1229fe13983274bf9675d09748cba281645 (diff)
downloadrails-51c53e19bfbc34c2b3b748786d8b5cc268de1c51.tar.gz
rails-51c53e19bfbc34c2b3b748786d8b5cc268de1c51.tar.bz2
rails-51c53e19bfbc34c2b3b748786d8b5cc268de1c51.zip
Merge pull request #26379 from kamipo/remove_unnecessary_query_scope
Remove unnecessary `query_scope`
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations/preloader/association.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/associations/preloader/association.rb b/activerecord/lib/active_record/associations/preloader/association.rb
index 07407700cd..c79efca920 100644
--- a/activerecord/lib/active_record/associations/preloader/association.rb
+++ b/activerecord/lib/active_record/associations/preloader/association.rb
@@ -28,10 +28,6 @@ module ActiveRecord
end
def records_for(ids)
- query_scope(ids)
- end
-
- def query_scope(ids)
scope.where(association_key_name => ids)
end