Skip to content

Commit 6266d38

Browse files
committed
docs: Fix has_one association basics guide
1 parent 171c4e4 commit 6266d38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/association_basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,7 @@ When you assign an object to a `has_one` association, that object is automatical
17951795

17961796
If either of these saves fails due to validation errors, then the assignment statement returns `false` and the assignment itself is cancelled.
17971797

1798-
If the parent object (the one declaring the `has_one` association) is unsaved (that is, `new_record?` returns `true`) then the child objects are not saved. They will automatically when the parent object is saved.
1798+
If the parent object (the one declaring the `has_one` association) is unsaved (that is, `new_record?` returns `true`) then the child objects are not saved. They will automatically be saved when the parent object is saved.
17991799

18001800
If you want to assign an object to a `has_one` association without saving the object, use the `build_association` method.
18011801

0 commit comments

Comments
 (0)