diff options
author | Lauro Caetano <laurocaetano1@gmail.com> | 2015-05-28 17:49:41 -0300 |
---|---|---|
committer | Lauro Caetano <laurocaetano1@gmail.com> | 2015-05-28 17:49:41 -0300 |
commit | 3b727898ebe97536d46da03484b4150fdae55a40 (patch) | |
tree | 7e5962d56120ea6303d0223f24af6e8c13ec7bf1 | |
parent | 092057661037ee205acec49404e2166a82342b1a (diff) | |
parent | d30f0011a9ddc18188b1bf7df35da0837b6f5260 (diff) | |
download | rails-3b727898ebe97536d46da03484b4150fdae55a40.tar.gz rails-3b727898ebe97536d46da03484b4150fdae55a40.tar.bz2 rails-3b727898ebe97536d46da03484b4150fdae55a40.zip |
Merge pull request #20344 from jcockhren/fix_docs_presence_validation
removed erroneous line. Corrected presence validation example.
-rw-r--r-- | guides/source/active_record_validations.md | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index a89f865200..7932853c11 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -552,7 +552,6 @@ Since `false.blank?` is true, if you want to validate the presence of a boolean field you should use one of the following validations: ```ruby -validates :boolean_field_name, presence: true validates :boolean_field_name, inclusion: { in: [true, false] } validates :boolean_field_name, exclusion: { in: [nil] } ``` |