File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- * ActiveRecord::Base.serialize now longer use YAML by default.
1
+ * ` ActiveRecord::Base.serialize ` no longer uses YAML by default.
2
2
3
3
YAML isn't particularly performant and can lead to security issues
4
4
if not used carefully.
12
12
13
13
Some third party JSON libraries like ` Oj ` have a suitable strict mode.
14
14
15
- So it's preferable if users chose a serializer based on their own constraints.
15
+ So it's preferable that users choose a serializer based on their own constraints.
16
16
17
17
The original default can be restored by setting ` config.active_record.default_column_serializer = YAML ` .
18
18
19
19
* Jean Boussier*
20
20
21
- * ActiveRecord::Base.serialize signature changed.
21
+ * ` ActiveRecord::Base.serialize ` signature changed.
22
22
23
- Rather than a single positional argument that accept two possible
24
- types of values, ` serialize ` now accept two distinct keyword arguments.
23
+ Rather than a single positional argument that accepts two possible
24
+ types of values, ` serialize ` now accepts two distinct keyword arguments.
25
25
26
26
Before:
27
27
You can’t perform that action at this time.
0 commit comments