From 8f09a8396f6c40fd651621c430b452691484294d Mon Sep 17 00:00:00 2001 From: Roque Pinel Date: Tue, 19 May 2015 22:20:10 -0400 Subject: [ci skip] add to doc that acceptance validator allows `nil` by default --- guides/source/active_record_validations.md | 1 + 1 file changed, 1 insertion(+) (limited to 'guides/source') 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 -- cgit v1.2.3