aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations
Commit message (Collapse)AuthorAgeFilesLines
* `validates_inclusion_of` and `validates_exclusion_of` now acceptRafael Mendonça França2012-07-202-10/+18
| | | | | | `:within` option as alias of `:in` as documented. Fix #7118
* fix validations docsFrancesco Rodriguez2012-05-179-116/+154
|
* Generate strict validation error messages with attribute nameCarlos Antonio da Silva2012-02-011-9/+8
| | | | Backported from master.
* 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
|
* Provide a way to specify alternate option keys for validatesCarl Lerche2011-02-051-1/+7
|
* Do not require that validation attributes be specified as symbolsCarl Lerche2011-02-051-2/+1
|
* Use run_callbacks; the generated _run_<name>_callbacks method is not a ↵John Firebaugh2011-01-311-1/+1
| | | | | | public interface. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Add support for namespaced validatorsSamuel Kadolph2010-12-161-1/+7
| | | | | | Includes test and documentation for new feature Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Don't compute this string againSantiago Pastorino2010-12-021-1/+1
|
* Don't redefine existing attributes accessors.Emilio Tagua2010-09-271-1/+3
|
* Better shortcut options for custom validators [#5672 state:resolved]Obie Fernandez2010-09-241-5/+10
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* remove irrelevant commentsNeeraj Singh2010-09-181-2/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Refactoring conditional logicSubba Rao Pasupuleti2010-09-011-3/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* type fixedSantiago Pastorino2010-08-221-1/+1
|
* after_validation should be called irrespective of the result of validation.Neeraj Singh2010-08-201-1/+1
| | | | | | | | I confirmed that this is the behavior on 2.3.x . [5419 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* you rarely want ^ or $ in validations, use \A when you mean \AXavier Noria2010-08-181-2/+2
|
* Missing object for comparison in ActiveModel::EachValidator example code.Trey Bean2010-08-171-1/+1
|