From 23f57413d00b0fba6c9198290a5533ba8a4c79eb Mon Sep 17 00:00:00 2001 From: Vladimir Rybas Date: Fri, 3 Jul 2015 11:25:41 +0700 Subject: [Rails Guides] Clarify `belongs_to_required_by_default` option Original: * `config.active_record.belongs_to_required_by_default` is a boolean value and controls whether `belongs_to` association is required by default. Modified version: * `config.active_record.belongs_to_required_by_default` is a boolean value and controls whether validation error is triggered by default if `belongs_to` association is not present or not valid. --- guides/source/configuring.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'guides/source/configuring.md') diff --git a/guides/source/configuring.md b/guides/source/configuring.md index 87114c4ef0..499b07346c 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -304,7 +304,9 @@ All these configuration options are delegated to the `I18n` library. `:all` which always dumps all schemas regardless of the schema_search_path, or a string of comma separated schemas. -* `config.active_record.belongs_to_required_by_default` is a boolean value and controls whether `belongs_to` association is required by default. +* `config.active_record.belongs_to_required_by_default` is a boolean + value and controls whether validation error is triggered by default if + `belongs_to` association is not present. * `config.active_record.warn_on_records_fetched_greater_than` allows setting a warning threshold for query result size. If the number of records returned -- cgit v1.2.3