2013-12-02 04:50:43 +00:00
|
|
|
* `attribute_changed?` now accepts parameters which check the old and new value of the attribute
|
|
|
|
|
|
|
|
`model.name_changed?(from: "Pete", to: "Ringo")`
|
|
|
|
|
|
|
|
*Tejas Dinkar*
|
|
|
|
|
2013-09-23 18:46:41 +00:00
|
|
|
* Fix `has_secure_password` to honor bcrypt-ruby's cost attribute.
|
|
|
|
|
|
|
|
*T.J. Schuck*
|
|
|
|
|
2013-10-03 14:37:10 +00:00
|
|
|
* Updated the `ActiveModel::Dirty#changed_attributes` method to be indifferent between using
|
2013-01-07 05:04:35 +00:00
|
|
|
symbols and strings as keys.
|
|
|
|
|
|
|
|
*William Myers*
|
|
|
|
|
2013-11-28 16:21:18 +00:00
|
|
|
* Added new API methods `reset_changes` and `changes_applied` to `ActiveModel::Dirty`
|
2013-09-23 13:59:05 +00:00
|
|
|
that control changes state. Previsously you needed to update internal
|
|
|
|
instance variables, but now API methods are available.
|
|
|
|
|
|
|
|
*Bogdan Gusiev*
|
|
|
|
|
2014-01-07 09:59:24 +00:00
|
|
|
* Fix `has_secure_password` not to trigger `password_confirmation` validations
|
|
|
|
if no `password_confirmation` is set.
|
2013-06-26 00:46:21 +00:00
|
|
|
|
|
|
|
*Vladimir Kiselev*
|
|
|
|
|
2013-06-26 00:46:50 +00:00
|
|
|
* `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`.
|
2013-11-28 16:21:18 +00:00
|
|
|
Fixes #10593.
|
2013-05-28 06:07:05 +00:00
|
|
|
|
|
|
|
*Charles Bergeron*
|
|
|
|
|
2014-01-07 09:59:24 +00:00
|
|
|
* Fix regression in `has_secure_password`. When a password is set, but a
|
2013-05-20 19:13:21 +00:00
|
|
|
confirmation is an empty string, it would incorrectly save.
|
|
|
|
|
|
|
|
*Steve Klabnik* and *Phillip Calvin*
|
|
|
|
|
2013-05-13 03:59:28 +00:00
|
|
|
* Deprecate `Validator#setup`. This should be done manually now in the validator's constructor.
|
|
|
|
|
|
|
|
*Nick Sutterer*
|
2013-02-26 16:45:20 +00:00
|
|
|
|
2013-04-29 16:06:45 +00:00
|
|
|
Please check [4-0-stable](https://github.com/rails/rails/blob/4-0-stable/activemodel/CHANGELOG.md) for previous changes.
|