Remove unwanted transaction when has one association is built #8154
carlosantoniodasilva commented on the diff
|@@ -28,7 +28,7 @@ def replace(record, save = true)|
|# If target and record are nil, or target is equal to record,|
|# we don't need to have transaction.|
|if (target || record) && target != record|
|- reflection.klass.transaction do|
|+ transaction_if(save) do|
nikitug referenced this pull request
This page is out of date. Refresh to see the latest.
Showing with 24 additions and 1 deletion.