Bug Report #1252
Validation - included_in, excluded_in
| 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.
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