Merge pull request #42863 from georgeclaghorn/rm-outdated-comment

Remove outdated comment in `ActiveRecord::Associations::AssociationScope#add_constraints`
This commit is contained in:
Ryuta Kamizono 2021-07-25 17:39:09 +09:00 committed by GitHub
commit 1488cb8440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -123,8 +123,6 @@ module ActiveRecord
chain_head = chain.first
chain.reverse_each do |reflection|
# Exclude the scope of the association itself, because that
# was already merged in the #scope method.
reflection.constraints.each do |scope_chain_item|
item = eval_scope(reflection, scope_chain_item, owner)