mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
cccb0e6b93
[#430 state:resolved] Example : validates_format_of :subdomain, :without => /www|admin|mail/ Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
11 lines
327 B
Text
11 lines
327 B
Text
*Edge*
|
|
|
|
* Add validates_format_of :without => /regexp/ option. #430 [Elliot Winkler, Peer Allan]
|
|
|
|
Example :
|
|
|
|
validates_format_of :subdomain, :without => /www|admin|mail/
|
|
|
|
* Introduce validates_with to encapsulate attribute validations in a class. #2630 [Jeff Dean]
|
|
|
|
* Extracted from Active Record and Active Resource.
|