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.
This commit is contained in:
Colin Kelley 2012-12-26 17:02:54 -08:00
parent 41381c19d1
commit 52691c369c
1 changed files with 0 additions and 4 deletions

View File

@ -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