@@ -63,7 +63,7 @@ module ClassMethods
63
63
# ==== Choosing a serializer
64
64
#
65
65
# While any serialization format can be used, it is recommended to carefully
66
- # evaludate the properties of a serializer before using it, as migrating to
66
+ # evaluate the properties of a serializer before using it, as migrating to
67
67
# another format later on can be difficult.
68
68
#
69
69
# ===== Avoid accepting arbitrary types
@@ -72,9 +72,9 @@ module ClassMethods
72
72
# only expected types will be serialized. For instance some serializer like
73
73
# +Marshal+ or +YAML+ are capable of serializing almost any Ruby object.
74
74
#
75
- # This can lead to unexpected types being serialized, and it it happens
76
- # that type serialization must remain backward and forward compatible as long
77
- # as some database record still contain these serialized types.
75
+ # This can lead to unexpected types being serialized, and it is important
76
+ # that type serialization remains backward and forward compatible as long
77
+ # as some database records still contain these serialized types.
78
78
#
79
79
# class Address
80
80
# def initialize(line, city, country)
@@ -116,13 +116,13 @@ module ClassMethods
116
116
# serialize :address, coder: Address
117
117
# end
118
118
#
119
- # This patterns allow to be more deliberate about what is serialized, and
119
+ # This pattern allows to be more deliberate about what is serialized, and
120
120
# to evolve the format in a backward compatible way.
121
121
#
122
122
# ===== Ensure serialization stability
123
123
#
124
124
# Some serialization methods may accept some types they don't support by
125
- # silently casting them to another types. This can cause bugs when the
125
+ # silently casting them to other types. This can cause bugs when the
126
126
# data is deserialized.
127
127
#
128
128
# For instance the +JSON+ serializer provided in the standard library will
0 commit comments