From be8bc47262af461e5c6ac729fec23e98342fdfe7 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Sun, 27 Mar 2016 09:55:04 +0900 Subject: add `:index_errors` option to example [ci skip] --- activerecord/CHANGELOG.md | 4 ++-- 1 file 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 -- cgit v1.2.3