Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10651 (closed defect: fixed)

Opened 8 months ago

Last modified 7 months ago

[PATCH] allow_blank option in validates_format_of added to doc and test

Reported by: blj Assigned to: core
Priority: normal Milestone: 2.x
Component: ActiveRecord Version: edge
Severity: normal Keywords: verified doc test tiny
Cc:

Description

The :allow_blank=>true option is missing from the validates_format_of doc.

Also added a test method that would test the allow_blank for the validates_format_of.

Attachments

validates_format_of_with_allow_blank_doc_test_patch.diff (1.8 kB) - added by blj on 12/30/07 07:59:45.
Patch to ActiveRecord validations for doc and test (tests simplified)

Change History

12/30/07 07:27:05 changed by tpope

+1, though the hard tabs need to be cleaned up before applying.

12/30/07 07:59:45 changed by blj

  • attachment validates_format_of_with_allow_blank_doc_test_patch.diff added.

Patch to ActiveRecord validations for doc and test (tests simplified)

12/30/07 08:01:42 changed by lifofifo

+1

12/30/07 13:08:11 changed by chuyeow

  • keywords set to verified.
  • milestone set to 2.x.

+1

12/30/07 14:16:27 changed by blj

  • keywords changed from verified to verified doc test tiny.

01/26/08 05:08:24 changed by nzkoz

  • status changed from new to closed.
  • resolution set to fixed.

(In [8733]) Add tests and documentation for allow_blank. Closes #10651 [blj]

02/10/08 01:05:58 changed by nzkoz

(In [8832]) 2-0-stable: Add tests and documentation for allow_blank. References #10651 [blj]

Merging [8733]