Skip to content

Commit 339035c

Browse files
committed
Copy edit documentation
1 parent 5e4f2d3 commit 339035c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

activerecord/lib/active_record/associations.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,9 @@ def has_many(name, scope = nil, **options, &extension)
16621662
# If you want to ensure associated objects are revalidated on every update, use +validates_associated+.
16631663
# [+:autosave+]
16641664
# If +true+, always saves the associated object or destroys it if marked for destruction,
1665-
# when saving the parent object. If +false+, never save or destroy the associated object.
1665+
# when saving the parent object.
1666+
# If +false+, never save or destroy the associated object.
1667+
#
16661668
# By default, only saves the associated object if it's a new record. Setting this option
16671669
# to +true+ also enables validations on the associated object unless explicitly disabled
16681670
# with <tt>validate: false</tt>. This is because saving an object with invalid associated

0 commit comments

Comments
 (0)