aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJon Moss <maclover7@users.noreply.github.com>2016-03-26 22:01:35 -0400
committerJon Moss <maclover7@users.noreply.github.com>2016-03-26 22:01:35 -0400
commit763ff54df0e6ce6d15e52db9b6611fc7806f889c (patch)
treecf66d045a644545215da2ec135476325da3f2b7d /activerecord
parentdacfdf03d34b8f9a3b81ef2219bf49307f90257e (diff)
parentbe8bc47262af461e5c6ac729fec23e98342fdfe7 (diff)
downloadrails-763ff54df0e6ce6d15e52db9b6611fc7806f889c.tar.gz
rails-763ff54df0e6ce6d15e52db9b6611fc7806f889c.tar.bz2
rails-763ff54df0e6ce6d15e52db9b6611fc7806f889c.zip
Merge pull request #24333 from y-yagi/add_index_errors_option_to_example
add `:index_errors` option to example [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/CHANGELOG.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 53b669dc72..b25b46f9a7 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -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