rails/rails — pull request #16275 by YanhaoYang (2014-07-24 07:06:13+00:00)
Title: Removed inefficient code in ActiveRecord::Associations::CollectionAssociation#ids_writer

`klass.find(ids).index_by { |r| r.id }.values_at(*ids)` is just `klass.find(ids)`.