2021-07-21 07:45:09 -04:00
|
|
|
* Fix dirty check for Float::NaN and BigDecimal::NaN.
|
|
|
|
|
|
|
|
Float::NaN and BigDecimal::NaN in Ruby are [special values](https://bugs.ruby-lang.org/issues/1720)
|
|
|
|
and can't be compared with `==`.
|
|
|
|
|
|
|
|
*Marcelo Lauxen*
|
|
|
|
|
2021-03-15 04:50:49 -04:00
|
|
|
* Fix `to_json` for `ActiveModel::Dirty` object.
|
2021-06-29 19:31:17 -04:00
|
|
|
|
2021-07-20 21:08:08 -04:00
|
|
|
Exclude `mutations_from_database` attribute from json as it lead to recursion.
|
2021-03-15 04:50:49 -04:00
|
|
|
|
|
|
|
*Anil Maurya*
|
|
|
|
|
2021-07-20 21:08:08 -04:00
|
|
|
* Add `ActiveModel::AttributeSet#values_for_database`.
|
2021-06-06 23:49:43 -04:00
|
|
|
|
|
|
|
Returns attributes with values for assignment to the database.
|
|
|
|
|
|
|
|
*Chris Salzberg*
|
|
|
|
|
2021-07-20 21:08:08 -04:00
|
|
|
* Fix delegation in ActiveModel::Type::Registry#lookup and ActiveModel::Type.lookup.
|
2021-05-21 07:45:50 -04:00
|
|
|
|
|
|
|
Passing a last positional argument `{}` would be incorrectly considered as keyword argument.
|
|
|
|
|
|
|
|
*Benoit Daloze*
|
|
|
|
|
2021-05-03 10:09:25 -04:00
|
|
|
* Cache and re-use generated attribute methods.
|
2021-04-28 07:54:56 -04:00
|
|
|
|
|
|
|
Generated methods with identical implementations will now share their instruction sequences
|
2021-05-03 10:09:25 -04:00
|
|
|
leading to reduced memory retention, and slightly faster load time.
|
2021-04-28 07:54:56 -04:00
|
|
|
|
|
|
|
*Jean Boussier*
|
|
|
|
|
2021-01-05 13:42:16 -05:00
|
|
|
* Add `in: range` parameter to `numericality` validator.
|
|
|
|
|
2021-02-06 15:45:53 -05:00
|
|
|
*Michal Papis*
|
2021-01-05 13:42:16 -05:00
|
|
|
|
2020-12-29 14:25:04 -05:00
|
|
|
* Add `locale` argument to `ActiveModel::Name#initialize` to be used to generate the `singular`,
|
|
|
|
`plural`, `route_key` and `singular_route_key` values.
|
2020-11-02 16:12:47 -05:00
|
|
|
|
2021-02-06 15:45:53 -05:00
|
|
|
*Lukas Pokorny*
|
2020-10-22 15:45:53 -04:00
|
|
|
|
2020-11-02 13:16:45 -05:00
|
|
|
|
2020-12-02 18:37:26 -05:00
|
|
|
Please check [6-1-stable](https://github.com/rails/rails/blob/6-1-stable/activemodel/CHANGELOG.md) for previous changes.
|