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
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user