mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
61346d1b42
Greater accuracy for validates_inclusion_of on non-numeric ranges Closes #10774, fixes #10593
734 B
734 B
-
inclusion
/exclusion
validations with ranges will only use the fasterRange#cover
for numerical ranges, and the more accurateRange#include?
for non-numerical ones.Fixes range validations like
:a..:f
that used to pass with values like:be
. Fixes #10593Charles Bergeron
-
Fix regression in has_secure_password. When a password is set, but a confirmation is an empty string, it would incorrectly save.
Steve Klabnik and Phillip Calvin
-
Deprecate
Validator#setup
. This should be done manually now in the validator's constructor.Nick Sutterer
Please check 4-0-stable for previous changes.