File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
A not rare issue when working with serialized attributes is that the serialized representation of an object
4
4
can change over time. Either because you are migrating from one serializer to the other (e.g. YAML to JSON or to msgpack),
5
- or because the serializer used subtly changed it's output.
5
+ or because the serializer used subtly changed its output.
6
6
7
7
One example is libyaml that used to have some extra trailing whitespaces, and recently fixed that.
8
8
When this sorts of thing happen, you end up with lots of records that report being changed even though
12
12
can't assume the deserialized object has a working ` == ` method. Hence why this new functionality is opt-in.
13
13
14
14
``` ruby
15
- serialized :config , type: Hash , coder: JSON , comparable: true
15
+ serialize :config , type: Hash , coder: JSON , comparable: true
16
16
```
17
17
18
18
* Jean Boussier *
You can’t perform that action at this time.
0 commit comments