ActiveRecord_Validation is an interface for objects that can perform validations on an ActiveRecord instance. One instance of an ActiveRecord_Validation may have validate invoked for multiple ActiveRecord instances.
Located in /activerecord/lib/ActiveRecord/Validation.php (line 18)
Class | Description |
---|---|
ActiveRecord_Association_BelongsToKeyValidation | A validation for the foreign key field on a belongs_to relationship |
ActiveRecord_ConfirmationValidation | A validation to check that a confirmation attribute for an |
ActiveRecord_PresentValidation | A validation to check that an attribute is non-empty (as determined by the PHP function empty()). |
ActiveRecord_BoundsValidation | A validation to check that an attribute's string length is within a certain range. |
ActiveRecord_UniqueValidation | A validation to check that an attribute's value is unique. |
ActiveRecord_RegExValidation | A validation to check that an attribute's value conforms to a regular expression. |
ActiveRecord_SetValidation | A validation to check that an attribute's value is contained in a specified list. |
ActiveRecord_NumericValidation | A validation to check that an attribute's value is numeric. |
Constructor
Determine if the object should be validated or not based on the configured condition
Validate the object provided. If the object is invalid, it is the responsibility of this method to add any errors appropriate to the object's error collection.
Documentation generated on Wed, 25 Apr 2012 09:46:46 -0700 by phpDocumentor 1.4.3