From 52691c369c559d726d94d8551b5b809621e31a84 Mon Sep 17 00:00:00 2001 From: Colin Kelley Date: Wed, 26 Dec 2012 17:02:54 -0800 Subject: 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. --- guides/source/active_record_validations.md | 4 ---- 1 file changed, 4 deletions(-) (limited to 'guides/source/active_record_validations.md') 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 -- cgit v1.2.3