aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorRichard Schneeman <richard.schneeman@gmail.com>2015-05-19 22:27:54 -0500
committerRichard Schneeman <richard.schneeman@gmail.com>2015-05-19 22:27:54 -0500
commit07f1a503ace4b728b6e295af3fc69c1dc1ed18cc (patch)
tree8313d797bd52d9859a68733371be318aa08e9e5b /guides
parentdf93b4d1138ef6a435803170182bcb7819deeb02 (diff)
parent8f09a8396f6c40fd651621c430b452691484294d (diff)
downloadrails-07f1a503ace4b728b6e295af3fc69c1dc1ed18cc.tar.gz
rails-07f1a503ace4b728b6e295af3fc69c1dc1ed18cc.tar.bz2
rails-07f1a503ace4b728b6e295af3fc69c1dc1ed18cc.zip
Merge pull request #20215 from repinel/validates_acceptance_doc
[ci skip] add to doc that acceptance validator allows `nil` by default
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_record_validations.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md
index 8d41987958..60f0f0f0b7 100644
--- a/guides/source/active_record_validations.md
+++ b/guides/source/active_record_validations.md
@@ -283,6 +283,7 @@ class Person < ActiveRecord::Base
end
```
+This check is performed only if `terms_of_service` is not `nil`.
The default error message for this helper is _"must be accepted"_.
It can receive an `:accept` option, which determines the value that will be