#469 new

Validator and EachValidator details

Reported by Obie | September 18th, 2010 @ 02:17 PM | in Future Edition

1) EachValidator should accept "shortcut" options for more than just regexes, ranges and arrays. Hopefully Obie got his patch to the following method accepted.

def _parse_validates_options(options)
  case options
  when TrueClass
  when Hash
  when Regexp
    { :with => options }
  when Range, Array
    { :in => options }

2) There appears to be a bug (which Obie plans to submit a patch for) which makes custom validator classes ignore standard validator options like :message.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket