Skip to content

Commit

Permalink
Merge pull request #20215 from repinel/validates_acceptance_doc
Browse files Browse the repository at this point in the history
[ci skip] add to doc that acceptance validator allows `nil` by default
  • Loading branch information
schneems committed May 20, 2015
2 parents df93b4d + 8f09a83 commit 07f1a50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions guides/source/active_record_validations.md
Expand Up @@ -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
Expand Down

0 comments on commit 07f1a50

Please sign in to comment.