aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_record_validations.md
diff options
context:
space:
mode:
authorRoque Pinel <repinel@gmail.com>2015-05-19 22:20:10 -0400
committerRoque Pinel <repinel@gmail.com>2015-05-19 22:20:10 -0400
commit8f09a8396f6c40fd651621c430b452691484294d (patch)
tree7ff99a4d11f2b0c134c56294b56821e3e31c93ad /guides/source/active_record_validations.md
parente6f9468e221999e5ea8342f8e72578e1f0a0ec09 (diff)
downloadrails-8f09a8396f6c40fd651621c430b452691484294d.tar.gz
rails-8f09a8396f6c40fd651621c430b452691484294d.tar.bz2
rails-8f09a8396f6c40fd651621c430b452691484294d.zip
[ci skip] add to doc that acceptance validator allows `nil` by default
Diffstat (limited to 'guides/source/active_record_validations.md')
-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