aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models/topic.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add cases to test combining validation conditionsbogdanvlviv2017-11-061-1/+1
| | | | | | | | | - Test condition that is defined by array of conditions - Test condition that is defined by combining :if and :unless - Test local condition that is defined by :if - Test local condition that is defined by :unless See http://edgeguides.rubyonrails.org/active_record_validations.html#combining-validation-conditions
* Use frozen string literal in activemodel/Kir Shatrov2017-07-161-0/+2
|
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
|
* Removed deprecated :tokenizer in the length validatorRafael Mendonça França2016-10-101-4/+0
|
* applies remaining conventions across the projectXavier Noria2016-08-061-1/+0
|
* normalizes indentation and whitespace across the projectXavier Noria2016-08-061-1/+1
|
* Allow symbol as values for `tokenize` of `LengthValidator`kakipo2014-08-031-0/+4
|
* Let validates_inclusion_of accept Time and DateTime rangesAkira Matsuda2013-10-231-1/+1
| | | | fixes 4.0.0 regression introduced in 0317b93c17a46d7663a8c36edc26ad0ba3d75f85
* Optionally pass in the attribute being validated to an instance method validatorCarl Lerche2011-02-051-0/+4
|
* Be able to pass a validator method to #validatesCarl Lerche2011-02-051-0/+4
|
* Provide a way to specify alternate option keys for validatesCarl Lerche2011-02-051-0/+4
|
* after_validation should be called irrespective of the result of validation.Neeraj Singh2010-08-201-0/+9
| | | | | | | | I confirmed that this is the behavior on 2.3.x . [5419 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* removed use of AR in AMo tests and removed testing of scopes (:on) in ↵Josh Kalderimis2010-05-081-1/+11
| | | | individual validation tests and moved them to their own test file
* Move relevant validation tests from Active Record to Active ModelPratik Naik2009-03-201-0/+9