diff options
author | Vladimir Rybas <vladimirrybas@gmail.com> | 2015-07-03 11:25:41 +0700 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2015-10-20 15:55:49 -0600 |
commit | 23f57413d00b0fba6c9198290a5533ba8a4c79eb (patch) | |
tree | aecdebaaa43e9ae588b5069b2bb91f79b837f2af | |
parent | cceaa5c8535a42e25aab0033ed9764ded1e28adf (diff) | |
download | rails-23f57413d00b0fba6c9198290a5533ba8a4c79eb.tar.gz rails-23f57413d00b0fba6c9198290a5533ba8a4c79eb.tar.bz2 rails-23f57413d00b0fba6c9198290a5533ba8a4c79eb.zip |
[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.
-rw-r--r-- | guides/source/configuring.md | 4 |
1 files changed, 3 insertions, 1 deletions
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 |