aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove code duplication in InclusionValidator and ExclusionValidator.Rafael Mendonça França2012-03-283-44/+39
| | | | | | | | Orginal code by @jamescook Closes #1352 [Rafael Mendonça França + James Cook]
* Prefer || over 'or' for boolean operationsBenjamin Quorning2012-02-221-1/+1
|
* remove unnecessary require core_ext/string/encodingSergey Nartimov2012-02-141-2/+0
|
* To infinity… and beyond!Niels Ganser2012-02-061-2/+2
| | | | | | | Allow infinite values for validates_length_of. Particularly useful for prettily defining an open ended range such as validates_length_of :human_stupidity, :within => 0..Float::INFINITY
* AS::Callbacks: :skip_after_callbacks_if_terminated optionBogdan Gusiev2012-02-031-2/+1
|
* revise docs [ci skip]Vijay Dev2012-02-011-3/+3
|
* Generate strict validation error messages with attribute nameCarlos Antonio da Silva2012-02-011-7/+6
|
* whitespacesdreamfall2012-01-171-3/+3
|
* validates method should not change options argumentdreamfall2012-01-171-1/+1
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-01-111-1/+1
|\
| * Update ConfirmationValidator docs, correct when the validator runsAlan Harper2012-01-051-1/+1
| |
* | Remove Array.wrap call in ActiveModelRafael Mendonça França2012-01-061-2/+2
|/
* don't call an extra method if options[:tokenizer] is not presentVasiliy Ermolovich2011-12-241-4/+2
|
* use Range#min and Range#max to reduce extra statementVasiliy Ermolovich2011-12-241-2/+1
|
* deprecate String#encoding_aware? and remove its usageSergey Nartimov2011-12-241-2/+0
|
* added :other_than => :!= option to numericality validatorJakub Kuźma2011-12-211-2/+3
|
* Ensure length validator also works on 1.8.7.José Valim2011-12-061-6/+17
|
* Don't tokenize string when counting charactersIan Young2011-12-041-2/+1
|
* Fix argument error message for length validationAlexey Vakhov2011-12-011-1/+1
|
* Cosmetic fixes in AM validatations docsAlexey Vakhov2011-11-272-4/+4
|
* Fix a tiny typo in custom validators documentationJean Boussier2011-11-101-1/+1
|
* Use .add instead of << to add errorsEvgeniy Dolzhenko2011-10-112-3/+3
|
* Typo fixBogdan Gusiev2011-08-251-1/+1
|
* Implemented strict validation conceptBogdan Gusiev2011-08-1710-5/+35
| | | | | | | In order to deliver debug information to dev team instead of display error message to end user Implemented strict validation concept that suppose to define validation that always raise exception when fails
* Fix example code for #validates_with instance methodBen Marini2011-07-241-2/+2
|
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-06-061-3/+3
|\ | | | | | | | | Conflicts: activerecord/RUNNING_UNIT_TESTS
| * remove stray (Vijay Dev2011-06-031-1/+1
| |
| * Change hashrocket spacing to match conventions.Ben Orenstein2011-06-021-2/+2
| |
* | Don't add .rb in requiresGuillermo Iguaran2011-05-312-2/+2
|/
* Remove extra white spaces on ActiveModel docs.Sebastian Martinez2011-05-237-13/+13
|
* Remove unneeded merge with default false optionsAkira Matsuda2011-05-161-4/+0
|
* Don't add DEFAULT_TOKENIZER to every instance of LengthValidator. Just use ↵Akira Matsuda2011-05-161-2/+2
| | | | it only when needed.
* fix typoAditya Sanghi2011-04-291-1/+1
|
* :if should not fire on validations when not in context with :onAditya Sanghi2011-04-291-2/+2
|
* Remove code duplication.José Valim2011-04-113-20/+27
|
* No need to rescue here. Invoking the wrong method in an object can happen ↵José Valim2011-04-113-6/+0
| | | | anywhere if you are not careful. In other words, test your shit.
* Revert "Add :use_include option to allow user to explicitly use ↵José Valim2011-04-112-18/+14
| | | | | | | | `Range#include?` method in Ruby 1.9" Use :with => range.to_a instead. This reverts commit f6540211b5b9133c9f93c11655a04d613c237e67.
* Add :use_include option to allow user to explicitly use `Range#include?` ↵Prem Sichanugrist2011-04-102-14/+18
| | | | | | method in Ruby 1.9 In Ruby 1.9 we're currently use `Range#cover?` to fix the performance problem. However, there might be the case that you want to use `Range#include?` instead. This patch will give you that option.
* Add support for proc or lambda as an option for InclusionValidator, ↵Prem Sichanugrist2011-04-103-20/+76
| | | | | | ExclusionValidator, and FormatValidator You can now use a proc or lambda in :in option for InclusionValidator and ExclusionValidator, and :with, :without option for FormatValidator
* Refactor length validationSantiago Pastorino2011-03-121-3/+3
|
* length validation for fixnumsAndriy Tyurnikov2011-03-121-1/+2
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Configuration options are symbolsPaco Guzman2011-03-061-2/+2
|
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-02-218-10/+24
|\
| * copy-edits 8d96b89Xavier Noria2011-02-218-9/+24
| |
| * Clarification of ActiveRecord ActiveModel validation documentationPeer Allan2011-02-186-7/+6
| |
* | documents the backported Range#cover?, and related stuffXavier Noria2011-02-201-3/+5
| |
* | refactored ActiveModel::Validations::InclusionValidator#validate_eachDiego Carrion2011-02-191-18/+8
|/ | | | | | [#6455 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Change validates inclusion to use cover? for Ranges in ruby 1.9 [#6453 ↵Frederick Cheung2011-02-181-3/+20
| | | | | | state:committed] Signed-off-by: Xavier Noria <fxn@hashref.com>
* Optionally pass in the attribute being validated to an instance method validatorCarl Lerche2011-02-051-1/+7
|
* Be able to pass a validator method to #validatesCarl Lerche2011-02-051-0/+6
|