Bug Report #1252

Validation - included_in, excluded_in

Added by Abi Noda about 3 years ago. Updated about 3 years ago.

Status:Closed Start date:
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Libraries:Validation
Target version:2.4
Resolution:duplicate Points:

Description

Ruby on Rails has validates_exclusion_of and validates_inclusion_of.

Similarly, I've added included_in and excluded_in to the Validation class.

validation.diff (945 Bytes) Abi Noda, 04/11/2009 07:13 pm

History

Updated by Isaiah DeRose-Wilson about 3 years ago

Just use in_array instead of <em>included_in</em>, and if there was not operator support in the validation library you wouldn't need <em>excluded_in</em> either.

Updated by Abi Noda about 3 years ago

  • Status changed from New to Closed
  • Resolution set to duplicate

Also available in: Atom PDF