Respect new records for `CollectionProxy#distinct` #26980
kamipo wants to merge
kamipo:respect_new_records_for_collection_proxy_distinct
into rails:master
kamipo:respect_new_records_for_collection_proxy_distinct
into rails:master