We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dacfdf0 + be8bc47 commit 763ff54Copy full SHA for 763ff54
activerecord/CHANGELOG.md
@@ -538,13 +538,13 @@
538
* Add option to index errors in nested attributes
539
540
For models which have nested attributes, errors within those models will
541
- now be indexed if :index_errors is specified when defining a
+ now be indexed if `:index_errors` is specified when defining a
542
has_many relationship, or if its set in the global config.
543
544
Example:
545
546
class Guitar < ActiveRecord::Base
547
- has_many :tuning_pegs
+ has_many :tuning_pegs, index_errors: true
548
accepts_nested_attributes_for :tuning_pegs
549
end
550
0 commit comments