aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations/length.rb
Commit message (Collapse)AuthorAgeFilesLines
* Favor %{} in all code instead of (deprecated) {{}} as interpolation syntax ↵Lawrence Pit2010-05-031-3/+3
| | | | | | for I18n Signed-off-by: José Valim <jose.valim@gmail.com>
* Merge remote branch 'mainstream/master'Pratik Naik2010-01-171-44/+25
|\ | | | | | | | | Conflicts: actionpack/lib/action_controller/metal/flash.rb
| * Compile length validator options still at the class level, so whenever the ↵José Valim2010-01-081-42/+24
| | | | | | | | 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-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>
* | Merge remote branch 'mainstream/master'Pratik Naik2010-01-041-57/+72
|\|
| * ActiveRecord::Validations are now built on top of Validator as well.José Valim2009-12-231-2/+1
| |
| * validates_each uses a BlockValidator.José Valim2009-12-231-4/+3
| |
| * Added check_validity! to EachValidator and refactor existing ones.José Valim2009-12-231-27/+37
| |
| * Move validations in ActiveModel to validators, however all validatity checks ↵José Valim2009-12-231-42/+49
| | | | | | | | are still in the class method.
* | Clean up documentation on validates_length_of and change overly juvenile ↵Mike Gunderloy2009-09-151-4/+4
|/ | | | example.
* Fix exclusive range patch to use begin/end instead of min/max. [#2981 ↵Adam Keys2009-08-081-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 putsPratik Naik2009-08-081-4/+7
|
* validates_length_of with maximum should allow nil [#2309 status:resolved]jzw2009-08-081-2/+4
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Properly require ActiveModel validation dependenciesJoshua Peek2009-06-081-2/+2
|
* Remove DEFAULT_VALIDATION_OPTIONS from validationsPratik Naik2009-03-211-3/+1
|
* Add I18n translations to ActiveModel and move more AR specific parts to ↵Pratik Naik2009-03-201-6/+6
| | | | ActiveRecord::Validations
* Move all the Active Record validations to Active ModelPratik Naik2009-03-191-40/+40
|
* Improve documentation coverage and markupXavier Noria2008-05-021-22/+21
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Splitting them up firstDavid Heinemeier Hansson2008-04-011-0/+96
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9173 5ecf4fe2-1ee6-0310-87b1-e25e094e27de