Small tweaks on AR changelog [ci skip]

This commit is contained in:
Carlos Antonio da Silva 2023-02-24 09:50:45 -03:00
parent 50edf85acd
commit 0b32852878
1 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
* ActiveRecord::Base.serialize now longer use YAML by default. * `ActiveRecord::Base.serialize` no longer uses YAML by default.
YAML isn't particularly performant and can lead to security issues YAML isn't particularly performant and can lead to security issues
if not used carefully. if not used carefully.
@ -12,16 +12,16 @@
Some third party JSON libraries like `Oj` have a suitable strict mode. Some third party JSON libraries like `Oj` have a suitable strict mode.
So it's preferable if users chose a serializer based on their own constraints. So it's preferable that users choose a serializer based on their own constraints.
The original default can be restored by setting `config.active_record.default_column_serializer = YAML`. The original default can be restored by setting `config.active_record.default_column_serializer = YAML`.
*Jean Boussier* *Jean Boussier*
* ActiveRecord::Base.serialize signature changed. * `ActiveRecord::Base.serialize` signature changed.
Rather than a single positional argument that accept two possible Rather than a single positional argument that accepts two possible
types of values, `serialize` now accept two distinct keyword arguments. types of values, `serialize` now accepts two distinct keyword arguments.
Before: Before: