rails/rails — pull request #12834 by dredozubov (2013-11-10 22:56:41+00:00)
Title: Fixes problem with replacing has_one association record with itself

fix proposed by Sergio Cambra
tests updated to reflect the issue