aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations/clusivity.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove short circuit return in favor of simple conditionalCarlos Antonio da Silva2013-11-151-4/+7
|
* Let validates_inclusion_of accept Time and DateTime rangesAkira Matsuda2013-10-231-5/+11
| | | | fixes 4.0.0 regression introduced in 0317b93c17a46d7663a8c36edc26ad0ba3d75f85
* provide a more sementicthe local variables name for ↵Steven Yang2013-06-291-8/+8
| | | | | | | ActiveModel::Validations::Clusivity#include? method the original name `exclusion` is a bit confusing when using with the method `inclusion_method` rename it to a more logic neutral name.
* Use Range#cover? for Numeric ranges (tests via endpoints) and use ↵Charles Bergeron2013-05-271-3/+4
| | | | | | Range#include? for non-numeric ranges added changelog message
* Reduce number of Strings a bitAkira Matsuda2013-01-071-1/+1
|
* remove '.rb' from require callNihad Abbasov2012-09-121-1/+1
|
* Accept a symbol for `:in` option on inclusion and exclusion validatorsGabriel Sobrinho2012-08-241-3/+10
|
* Update documentation and change the range method name to delimiter.Rafael Mendonça França2012-07-201-5/+5
|
* `validates_inclusion_of` and `validates_exclusion_of` now acceptRafael Mendonça França2012-07-201-3/+6
| | | | | | `:within` option as alias of `:in` as documented. Fix #7118
* add :nodoc: to internal implementations of AM::Validator [ci skip]Francesco Rodriguez2012-07-061-1/+1
|
* Remove code duplication in InclusionValidator and ExclusionValidator.Rafael Mendonça França2012-03-281-0/+31
Orginal code by @jamescook Closes #1352 [Rafael Mendonça França + James Cook]