aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations/presence.rb
Commit message (Collapse)AuthorAgeFilesLines
* validation macros can now be used within an instanceJosh Kalderimis2010-05-131-1/+1
|
* Add validates method as shortcut to setup validators for a given set of ↵jamie2010-01-071-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>
* Move validations in ActiveModel to validators, however all validatity checks ↵José Valim2009-12-231-7/+8
| | | | are still in the class method.
* Changed ActiveRecord to use new callbacks and speed up observers by only ↵José Valim2009-09-081-1/+1
| | | | | | notifying events that are actually being consumed. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Properly require ActiveModel validation dependenciesJoshua Peek2009-06-081-2/+4
|
* Move validate_on_create and validate_on_update from ActiveModel to ActiveRecordPratik Naik2009-03-211-2/+1
|
* Move all the Active Record validations to Active ModelPratik Naik2009-03-191-17/+15
|
* Improve documentation coverage and markupXavier Noria2008-05-021-11/+15
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Splitting them up firstDavid Heinemeier Hansson2008-04-011-0/+38
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9173 5ecf4fe2-1ee6-0310-87b1-e25e094e27de