aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations/inclusion.rb
Commit message (Collapse)AuthorAgeFilesLines
* Cosmetics: mismatch indentationJeremy Kemper2010-03-281-1/+1
|
* Compile length validator options still at the class level, so whenever the ↵José Valim2010-01-081-1/+0
| | | | validator is called, it just needs to check for :maximum, :minimum and :is values.
* Add validates method as shortcut to setup validators for a given set of ↵jamie2010-01-071-3/+2
| | | | | | | | | | | | | | | 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>
* Added check_validity! to EachValidator and refactor existing ones.José Valim2009-12-231-4/+5
|
* Move validations in ActiveModel to validators, however all validatity checks ↵José Valim2009-12-231-9/+12
| | | | are still in the class method.
* Properly require ActiveModel validation dependenciesJoshua Peek2009-06-081-2/+2
|
* 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-7/+9
|
* Merge docrailsPratik Naik2009-03-161-1/+1
|
* More symbols for send and respond_to?.Clemens Kofler2008-09-031-1/+1
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Improve documentation coverage and markupXavier Noria2008-05-021-8/+8
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix more typos and changelogPratik Naik2008-04-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Splitting them up firstDavid Heinemeier Hansson2008-04-011-0/+37
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9173 5ecf4fe2-1ee6-0310-87b1-e25e094e27de