Extract **notable changes**, **deprecations** and **removals** from each CHANGELOG. I tried to reference the commits and pull requests for new features and deprecations. In the process I also made some minor changes to the CHANGELOGS. The 4_1_release_notes guide is declared WIP.
1.3 KiB
-
Fix
has_secure_password
to honor bcrypt-ruby's cost attribute.T.J. Schuck
-
Updated the
ActiveModel::Dirty#changed_attributes
method to be indifferent between using symbols and strings as keys.William Myers
-
Added new API methods
reset_changes
andchanges_applied
toActiveModel::Dirty
that control changes state. Previsously you needed to update internal instance variables, but now API methods are available.Bogdan Gusiev
-
Fix has_secure_password.
password_confirmation
validations are triggered even if nopassword_confirmation
is set.Vladimir Kiselev
-
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 #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.
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.