Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add :index_errors option to example [ci skip] #24333

Merged
merged 1 commit into from
Mar 27, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions activerecord/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -538,13 +538,13 @@
* Add option to index errors in nested attributes

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

Example:

class Guitar < ActiveRecord::Base
has_many :tuning_pegs
has_many :tuning_pegs, index_errors: true
accepts_nested_attributes_for :tuning_pegs
end

Expand Down