rails/rails — pull request #15309 by iantropov (2014-05-25 05:22:34+00:00)
Title: Add setting of FK for throgh associations while building

We should set FK for records, were built via through_associtation when it is possible (through has_one associations).

Fixes #12698