From 0317b93c17a46d7663a8c36edc26ad0ba3d75f85 Mon Sep 17 00:00:00 2001 From: Charles Bergeron Date: Mon, 27 May 2013 23:07:05 -0700 Subject: Use Range#cover? for Numeric ranges (tests via endpoints) and use Range#include? for non-numeric ranges added changelog message --- activemodel/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activemodel/CHANGELOG.md') 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* -- cgit v1.2.3