Skip to content

Commit

Permalink
removed TIP: :allow_nil/:allow_blank is ignored by the presence valid…
Browse files Browse the repository at this point in the history
…ator

These tips were documenting an inconsistency issue rails#8621. That issue is resolved by rails#8622.
  • Loading branch information
ColinDKelley committed Dec 27, 2012
1 parent 41381c1 commit 52691c3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions guides/source/active_record_validations.md
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 52691c3

Please sign in to comment.