Skip to content

Commit

Permalink
Fix a couple typos and revise sentence on new column serializer docs
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
carlosantoniodasilva committed Feb 22, 2023
1 parent 1797e5b commit c4b0509
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Expand Up @@ -63,7 +63,7 @@ module ClassMethods
# ==== Choosing a serializer
#
# While any serialization format can be used, it is recommended to carefully
# evaludate the properties of a serializer before using it, as migrating to
# evaluate the properties of a serializer before using it, as migrating to
# another format later on can be difficult.
#
# ===== Avoid accepting arbitrary types
Expand All @@ -72,9 +72,9 @@ module ClassMethods
# only expected types will be serialized. For instance some serializer like
# +Marshal+ or +YAML+ are capable of serializing almost any Ruby object.
#
# This can lead to unexpected types being serialized, and it it happens
# that type serialization must remain backward and forward compatible as long
# as some database record still contain these serialized types.
# This can lead to unexpected types being serialized, and it is important
# that type serialization remains backward and forward compatible as long
# as some database records still contain these serialized types.
#
# class Address
# def initialize(line, city, country)
Expand Down Expand Up @@ -116,13 +116,13 @@ module ClassMethods
# serialize :address, coder: Address
# end
#
# This patterns allow to be more deliberate about what is serialized, and
# This pattern allows to be more deliberate about what is serialized, and
# to evolve the format in a backward compatible way.
#
# ===== Ensure serialization stability
#
# Some serialization methods may accept some types they don't support by
# silently casting them to another types. This can cause bugs when the
# silently casting them to other types. This can cause bugs when the
# data is deserialized.
#
# For instance the +JSON+ serializer provided in the standard library will
Expand Down
2 changes: 1 addition & 1 deletion guides/source/configuring.md
Expand Up @@ -1275,7 +1275,7 @@ column.

`serialize` and `store` while allowing to use alternative serializer
implementations, use `YAML` by default, but it's not a very efficient format
and can be the source of security vulnerability if not carefully employeed.
and can be the source of security vulnerabilities if not carefully employed.

As such it is recommended to prefer stricter, more limited formats for database
serialization.
Expand Down

0 comments on commit c4b0509

Please sign in to comment.