Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 7.1 - Serialized columns like a store now needs a coder: JSON #863

Closed
mhenrixon opened this issue Feb 24, 2023 · 5 comments · Fixed by #864
Closed

Rails 7.1 - Serialized columns like a store now needs a coder: JSON #863

mhenrixon opened this issue Feb 24, 2023 · 5 comments · Fixed by #864

Comments

@mhenrixon
Copy link

missing keyword: :coder If no default coder is configured, a coder must be provided to `serialize`. (ArgumentError)

            raise ArgumentError, <<~MSG.squish
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  from gems/3.2.0/gems/good_job-3.12.3/app/models/good_job/batch_record.rb:76:in `<class:BatchRecord>'
  from gems/3.2.0/gems/good_job-3.12.3/app/models/good_job/batch_record.rb:4:in `<module:GoodJob>'
  from gems/3.2.0/gems/good_job-3.12.3/app/models/good_job/batch_record.rb:3:in `<main>'

No rush on my behalf, just for your information.

Love your work!

@mhenrixon
Copy link
Author

serialize :serialized_properties, coder: PropertySerializer

Seems to do the trick

@bensheldon
Copy link
Owner

Thanks @mhenrixon I was just poking at that 😁 I'll get a patch out momentarily.

@bensheldon
Copy link
Owner

@mhenrixon
Copy link
Author

Jesus you are fast! I was just going to clone the repo and provide a fix. Thanks a bunch!

@bensheldon
Copy link
Owner

lol! it was just the perfect chain of events. no promises in the future 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

2 participants