aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations/clusivity.rb
Commit message (Collapse)AuthorAgeFilesLines
* revises most Lint/EndAlignment offensesXavier Noria2016-08-071-5/+5
| | | | Some case expressions remain, need to think about those ones.
* normalizes indentation and whitespace across the projectXavier Noria2016-08-061-1/+1
|
* applies new string literal convention in activemodel/libXavier Noria2016-08-061-1/+1
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Use Range#cover? for Date inclusion validatorojab2016-03-241-3/+4
|
* 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]