aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/CHANGELOG.md
diff options
context:
space:
mode:
authorCharles Bergeron <chuck.bergeron@gmail.com>2013-05-27 23:07:05 -0700
committerCharles Bergeron <chuck.bergeron@gmail.com>2013-05-27 23:54:25 -0700
commit0317b93c17a46d7663a8c36edc26ad0ba3d75f85 (patch)
tree3fcfde93ff1081fd53b8453f8cdd2b95dc42b3cd /activemodel/CHANGELOG.md
parent5a687e930ffd4785be7af4816f97000fc3e948b3 (diff)
downloadrails-0317b93c17a46d7663a8c36edc26ad0ba3d75f85.tar.gz
rails-0317b93c17a46d7663a8c36edc26ad0ba3d75f85.tar.bz2
rails-0317b93c17a46d7663a8c36edc26ad0ba3d75f85.zip
Use Range#cover? for Numeric ranges (tests via endpoints) and use Range#include? for non-numeric ranges
added changelog message
Diffstat (limited to 'activemodel/CHANGELOG.md')
-rw-r--r--activemodel/CHANGELOG.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md
index 8c7af2d078..b73d688964 100644
--- a/activemodel/CHANGELOG.md
+++ b/activemodel/CHANGELOG.md
@@ -1,3 +1,7 @@
+* `validates_inclusion_of` for ranges uses the speedy Range#cover for numerical ranges, and the accurate Range#include? for non-numerical ranges.
+
+ *Charles Bergeron*
+
* Deprecate `Validator#setup`. This should be done manually now in the validator's constructor.
*Nick Sutterer*