2014-08-06 10:41:36 -04:00
|
|
|
* Passwords with spaces only allowed in `ActiveModel::SecurePassword`.
|
|
|
|
|
2014-08-07 08:17:12 -04:00
|
|
|
Presence validation can be used to restore old behavior.
|
2014-08-06 10:41:36 -04:00
|
|
|
|
|
|
|
*Yevhene Shemet*
|
|
|
|
|
2014-07-17 17:37:03 -04:00
|
|
|
* Validate options passed to `ActiveModel::Validations.validate`.
|
2014-07-17 17:02:54 -04:00
|
|
|
|
2014-07-17 17:37:03 -04:00
|
|
|
Preventing, in many cases, the simple mistake of using `validate` instead of `validates`.
|
2014-07-17 17:02:54 -04:00
|
|
|
|
|
|
|
*Sonny Michaud*
|
|
|
|
|
2014-07-15 15:12:23 -04:00
|
|
|
* Deprecate `reset_#{attribute}` in favor of `restore_#{attribute}`.
|
|
|
|
|
|
|
|
These methods may cause confusion with the `reset_changes` that behaves differently
|
|
|
|
of them.
|
|
|
|
|
2014-07-15 15:00:50 -04:00
|
|
|
* Deprecate `ActiveModel::Dirty#reset_changes` in favor of `#clear_changes_information`.
|
|
|
|
|
|
|
|
This method name is causing confusion with the `reset_#{attribute}`
|
|
|
|
methods. While `reset_name` set the value of the name attribute for the
|
|
|
|
previous value `reset_changes` only discard the changes and previous
|
2014-07-15 15:12:23 -04:00
|
|
|
changes.
|
2014-07-15 15:00:50 -04:00
|
|
|
|
2014-07-15 15:12:23 -04:00
|
|
|
* Added `restore_attributes` method to `ActiveModel::Dirty` API to restore all the
|
2014-06-30 14:41:41 -04:00
|
|
|
changed values to the previous data.
|
|
|
|
|
|
|
|
*Igor G.*
|
|
|
|
|
2014-06-22 06:22:27 -04:00
|
|
|
* Allow proc and symbol as values for `only_integer` of `NumericalityValidator`
|
|
|
|
|
|
|
|
*Robin Mehner*
|
|
|
|
|
2014-06-14 03:32:31 -04:00
|
|
|
* `has_secure_password` now verifies that the given password is less than 72
|
|
|
|
characters if validations are enabled.
|
|
|
|
|
|
|
|
Fixes #14591.
|
|
|
|
|
|
|
|
*Akshay Vishnoi*
|
|
|
|
|
2014-06-11 05:31:28 -04:00
|
|
|
* Remove deprecated `Validator#setup` without replacement.
|
2014-06-11 03:02:07 -04:00
|
|
|
|
|
|
|
See #10716.
|
2014-06-11 02:08:06 -04:00
|
|
|
|
|
|
|
*Kuldeep Aggarwal*
|
|
|
|
|
2014-05-16 03:03:26 -04:00
|
|
|
* Add plural and singular form for length validator's default messages.
|
2013-04-03 23:31:48 -04:00
|
|
|
|
|
|
|
*Abd ar-Rahman Hamid*
|
|
|
|
|
2014-03-27 13:16:57 -04:00
|
|
|
* Introduce `validate` as an alias for `valid?`.
|
|
|
|
|
2014-05-02 05:56:03 -04:00
|
|
|
This is more intuitive when you want to run validations but don't care about
|
|
|
|
the return value.
|
2014-03-27 13:16:57 -04:00
|
|
|
|
|
|
|
*Henrik Nyh*
|
|
|
|
|
2014-02-25 07:14:35 -05:00
|
|
|
Please check [4-1-stable](https://github.com/rails/rails/blob/4-1-stable/activemodel/CHANGELOG.md) for previous changes.
|