Skip to content

Commit

Permalink
Minor typo fixes and rewording for serialize_attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Dec 12, 2024
1 parent 0b9547d commit 0242c40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/sequel/plugins/serialization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ def freeze
# Create instance level reader that deserializes column values on request,
# and instance level writer that stores new deserialized values. If +format+
# is a symbol, it should correspond to a previously-registered format using +register_format+.
# Otherwise, +format+ ois expected to be a 2-element array of callables,
# with the first element being the serializer, used to store the column
# to the database, and the second element beig the deserialized,
# used to read the column from the database
# Otherwise, +format+ is expected to be a 2-element array of callables,
# with the first element being the serializer, used to convert the value used by the application
# to the value that will be stored in the database, and the second element being the deserializer,
# used to convert the value stored the database to the value used by the application.
def serialize_attributes(format, *columns)
if format.is_a?(Symbol)
unless format = Sequel.synchronize{REGISTERED_FORMATS[format]}
Expand Down

0 comments on commit 0242c40

Please sign in to comment.