Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add validates method as shortcut to setup validators for a given set of ↵ | jamie | 2010-01-07 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | 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> | ||||
* | ActiveRecord::Validations are now built on top of Validator as well. | José Valim | 2009-12-23 | 1 | -2/+1 |
| | |||||
* | validates_each uses a BlockValidator. | José Valim | 2009-12-23 | 1 | -4/+3 |
| | |||||
* | Added check_validity! to EachValidator and refactor existing ones. | José Valim | 2009-12-23 | 1 | -27/+37 |
| | |||||
* | Move validations in ActiveModel to validators, however all validatity checks ↵ | José Valim | 2009-12-23 | 1 | -42/+49 |
| | | | | are still in the class method. | ||||
* | Fix exclusive range patch to use begin/end instead of min/max. [#2981 ↵ | Adam Keys | 2009-08-08 | 1 | -4/+8 |
| | | | | | | | status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Simplyfy validates_length_of and remove puts | Pratik Naik | 2009-08-08 | 1 | -4/+7 |
| | |||||
* | validates_length_of with maximum should allow nil [#2309 status:resolved] | jzw | 2009-08-08 | 1 | -2/+4 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Properly require ActiveModel validation dependencies | Joshua Peek | 2009-06-08 | 1 | -2/+2 |
| | |||||
* | Remove DEFAULT_VALIDATION_OPTIONS from validations | Pratik Naik | 2009-03-21 | 1 | -3/+1 |
| | |||||
* | Add I18n translations to ActiveModel and move more AR specific parts to ↵ | Pratik Naik | 2009-03-20 | 1 | -6/+6 |
| | | | | ActiveRecord::Validations | ||||
* | Move all the Active Record validations to Active Model | Pratik Naik | 2009-03-19 | 1 | -40/+40 |
| | |||||
* | Improve documentation coverage and markup | Xavier Noria | 2008-05-02 | 1 | -22/+21 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Splitting them up first | David Heinemeier Hansson | 2008-04-01 | 1 | -0/+96 |
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9173 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |