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

Ticket #9574 (new defect)

Opened 1 year ago

Last modified 1 year ago

[PATCH] [TINY] Validates_length_of with range option :in should also accept :message

Reported by: lawrence Assigned to: core
Priority: low Milestone: 2.x
Component: ActiveRecord Version: edge
Severity: minor Keywords: tiny, validates_length_of
Cc:

Description

All validates_ methods accept a custom error message (as :message configuration option), except validates_length_of when it's provided an :in range configuration.

added few tiny tests as well.

modified doc slightly (other validates_ methods mention :in only, not :within)

Attachments

validates_length_of_in.diff (9.8 kB) - added by lawrence on 09/17/07 03:13:58.
[PATCH] validates_length_of_in.diff

Change History

09/17/07 03:13:58 changed by lawrence

  • attachment validates_length_of_in.diff added.

[PATCH] validates_length_of_in.diff

09/17/07 04:00:31 changed by lawrence

  • summary changed from [PATCH] tiny. validates_length_of with range option :in should also accept :message to [PATCH] [TINY] Validates_length_of with range option :in should also accept :message.