rails/rails — pull request #7286 by kennyj (2012-08-08 02:15:56+00:00)
Title: Fix #7191. Remove unnecessary transaction when assigning has_one associations.

Please see #7191. If target is equal to record or target and record are nil, we should not use transaction.