aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-03-27 09:55:04 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-03-27 10:01:26 +0900
commitbe8bc47262af461e5c6ac729fec23e98342fdfe7 (patch)
treecf66d045a644545215da2ec135476325da3f2b7d
parentdacfdf03d34b8f9a3b81ef2219bf49307f90257e (diff)
downloadrails-be8bc47262af461e5c6ac729fec23e98342fdfe7.tar.gz
rails-be8bc47262af461e5c6ac729fec23e98342fdfe7.tar.bz2
rails-be8bc47262af461e5c6ac729fec23e98342fdfe7.zip
add `:index_errors` option to example [ci skip]
-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