mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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:
parent
41381c19d1
commit
52691c369c
1 changed files with 0 additions and 4 deletions
|
@ -656,8 +656,6 @@ class Coffee < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
TIP: `:allow_nil` is ignored by the presence validator.
|
|
||||||
|
|
||||||
### `:allow_blank`
|
### `:allow_blank`
|
||||||
|
|
||||||
The `:allow_blank` option is similar to the `:allow_nil` option. This option
|
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
|
Topic.create("title" => nil).valid? # => true
|
||||||
```
|
```
|
||||||
|
|
||||||
TIP: `:allow_blank` is ignored by the presence validator.
|
|
||||||
|
|
||||||
### `:message`
|
### `:message`
|
||||||
|
|
||||||
As you've already seen, the `:message` option lets you specify the message that
|
As you've already seen, the `:message` option lets you specify the message that
|
||||||
|
|
Loading…
Reference in a new issue