public
Description: Extraction of common rails validations
Homepage:
Clone URL: git://github.com/danielharan/validations.git
Daniel Haran (author)
Fri Jul 11 14:09:09 -0700 2008
commit  85b6b6371331f4aca3a01c9c564bde3d4f41a3c5
tree    3c4a8437f07c24c098097e5360eaeb496ace24d8
validations / README
100644 16 lines (10 sloc) 0.365 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Validations
===========
 
Extraction of email validation from the restful_authentication plugin
 
It checks for presence, length, format and uniqueness. There is no guarantee that a validated email is real and deliverable.
 
Example
=======
 
class User < ActiveRecord::Base
  validates_email :email
end
 
Copyright (c) 2008 Daniel Haran, released under the MIT license