aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_record_validations.md
diff options
context:
space:
mode:
authorColin Kelley <colindkelley@gmail.com>2012-12-26 17:02:54 -0800
committerColin Kelley <colindkelley@gmail.com>2012-12-26 17:02:54 -0800
commit52691c369c559d726d94d8551b5b809621e31a84 (patch)
treeb8f944617d80357f90a5ca7ac8a970335aeea26d /guides/source/active_record_validations.md
parent41381c19d1f3920ee9540aff0d35209cb43fb057 (diff)
downloadrails-52691c369c559d726d94d8551b5b809621e31a84.tar.gz
rails-52691c369c559d726d94d8551b5b809621e31a84.tar.bz2
rails-52691c369c559d726d94d8551b5b809621e31a84.zip
removed TIP: :allow_nil/:allow_blank is ignored by the presence validator
These tips were documenting an inconsistency issue https://github.com/rails/rails/issues/8621. That issue is resolved by https://github.com/rails/rails/issues/8622.
Diffstat (limited to 'guides/source/active_record_validations.md')
-rw-r--r--guides/source/active_record_validations.md4
1 files changed, 0 insertions, 4 deletions
diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md
index 822d12aa3a..5797c93ae7 100644
--- a/guides/source/active_record_validations.md
+++ b/guides/source/active_record_validations.md
@@ -656,8 +656,6 @@ class Coffee < ActiveRecord::Base
end
```
-TIP: `:allow_nil` is ignored by the presence validator.
-
### `:allow_blank`
The `:allow_blank` option is similar to the `:allow_nil` option. This option
@@ -673,8 +671,6 @@ Topic.create("title" => "").valid? # => true
Topic.create("title" => nil).valid? # => true
```
-TIP: `:allow_blank` is ignored by the presence validator.
-
### `:message`
As you've already seen, the `:message` option lets you specify the message that