aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/validators
Commit message (Collapse)AuthorAgeFilesLines
* This is not an executable fileSantiago Pastorino2010-12-161-0/+0
|
* Add support for namespaced validatorsSamuel Kadolph2010-12-161-0/+6
| | | | | | Includes test and documentation for new feature Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Add validates method as shortcut to setup validators for a given set of ↵jamie2010-01-071-0/+6
attributes: class Person < ActiveRecord::Base include MyValidators validates :name, :presence => true, :uniqueness => true, :length => { :maximum => 100 } validates :email, :presence => true, :email => true end [#3058 status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>