rails/rails — pull request #11869 by beerlington (2013-08-13 12:50:05+00:00)
Title: Set attributes from where clause on null relationship

When an association is created based on a null relationship, the
attributes from the where clause are lost. This fixes that behavior by
removing the overridden where_values_hash method and using the one on
the ActiveRecord::Relation class.

Fixes #11676 and #11675