Skip to content

Commit c3fa0e3

Browse files
GarrisonDskipkayhil
andcommitted
Update index_errors style in docs
Co-authored-by: Hartley McGuire <[email protected]>
1 parent fc1a432 commit c3fa0e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/lib/active_record/associations.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,9 +1244,9 @@ module ClassMethods
12441244
# Serves as a composite foreign key. Defines the list of columns to be used to query the associated object.
12451245
# This is an optional option. By default Rails will attempt to derive the value automatically.
12461246
# When the value is set the Array size must match associated model's primary key or +query_constraints+ size.
1247-
# [:index_errors]
1247+
# [+:index_errors+]
12481248
# Allows differentiation of multiple validation errors from the association records, by including
1249-
# an index in the error attribute name, e.g. `roles[2].level`.
1249+
# an index in the error attribute name, e.g. +roles[2].level+.
12501250
# When set to +true+, the index is based on association order, i.e. database order, with yet to be
12511251
# persisted new records placed at the end.
12521252
# When set to +:nested_attributes_order+, the index is based on the record order received by

0 commit comments

Comments
 (0)