Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refactor previous commit a bit [#4057 state:resolved] | José Valim | 2010-06-21 | 1 | -3/+0 |
| | |||||
* | Add titles to the rest of the files in active_model/validations/* | Rizwan Reza | 2010-06-15 | 1 | -0/+2 |
| | |||||
* | minor changes to instance level validations implementation based on feedback ↵ | Josh Kalderimis | 2010-05-13 | 1 | -25/+12 |
| | | | | from José Valim | ||||
* | validation macros can now be used within an instance | Josh Kalderimis | 2010-05-13 | 1 | -0/+66 |
| | |||||
* | Add validators reflection so you can do 'Person.validators' and ↵ | Prem Sichanugrist | 2010-02-21 | 1 | -0/+9 |
| | | | | | | 'Person.validators_on(:name)'. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Add validates method as shortcut to setup validators for a given set of ↵ | jamie | 2010-01-07 | 1 | -18/+29 |
| | | | | | | | | | | | | | | | 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> | ||||
* | validates_each uses a BlockValidator. | José Valim | 2009-12-23 | 1 | -2/+2 |
| | |||||
* | Move validations in ActiveModel to validators, however all validatity checks ↵ | José Valim | 2009-12-23 | 1 | -4/+1 |
| | | | | are still in the class method. | ||||
* | Validator is simply sent to validate method. However, the API needs to ↵ | José Valim | 2009-12-22 | 1 | -5/+3 |
| | | | | change, so validate accepts a record. | ||||
* | Changed ActiveRecord to use new callbacks and speed up observers by only ↵ | José Valim | 2009-09-08 | 1 | -1/+1 |
| | | | | | | notifying events that are actually being consumed. Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Introduce validates_with to encapsulate attribute validations in a class. | Jeff Dean | 2009-08-09 | 1 | -0/+64 |
[#2630 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> |