Skip to content

Commit be8bc47

Browse files
committed
add :index_errors option to example [ci skip]
1 parent dacfdf0 commit be8bc47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,13 +538,13 @@
538538
* Add option to index errors in nested attributes
539539

540540
For models which have nested attributes, errors within those models will
541-
now be indexed if :index_errors is specified when defining a
541+
now be indexed if `:index_errors` is specified when defining a
542542
has_many relationship, or if its set in the global config.
543543

544544
Example:
545545

546546
class Guitar < ActiveRecord::Base
547-
has_many :tuning_pegs
547+
has_many :tuning_pegs, index_errors: true
548548
accepts_nested_attributes_for :tuning_pegs
549549
end
550550

0 commit comments

Comments
 (0)