aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/CHANGELOG.md
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-06-25 21:46:50 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-06-25 21:48:41 -0300
commit61346d1b42527d072c0b4bd97f3b5ce3f6be214c (patch)
tree5e3ed3a00752aa4e8a0c5b6cc3d04c078d01ba69 /activemodel/CHANGELOG.md
parenta1fedfa839d0cd8b40c61b1a00bd0ac848a838af (diff)
parent0317b93c17a46d7663a8c36edc26ad0ba3d75f85 (diff)
downloadrails-61346d1b42527d072c0b4bd97f3b5ce3f6be214c.tar.gz
rails-61346d1b42527d072c0b4bd97f3b5ce3f6be214c.tar.bz2
rails-61346d1b42527d072c0b4bd97f3b5ce3f6be214c.zip
Merge pull request #10774 from chuckbergeron/validates-inclusion-of-accuracy-for-non-numeric-ranges
Greater accuracy for validates_inclusion_of on non-numeric ranges Closes #10774, fixes #10593
Diffstat (limited to 'activemodel/CHANGELOG.md')
-rw-r--r--activemodel/CHANGELOG.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md
index 6fc34ecd60..0568e5d545 100644
--- a/activemodel/CHANGELOG.md
+++ b/activemodel/CHANGELOG.md
@@ -1,3 +1,12 @@
+* `inclusion` / `exclusion` validations with ranges will only use the faster
+ `Range#cover` for numerical ranges, and the more accurate `Range#include?`
+ for non-numerical ones.
+
+ Fixes range validations like `:a..:f` that used to pass with values like `:be`.
+ Fixes #10593
+
+ *Charles Bergeron*
+
* Fix regression in has_secure_password. When a password is set, but a
confirmation is an empty string, it would incorrectly save.