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

fix: allow using active_model_serializers in associations (compat) #12

Merged
merged 4 commits into from
Apr 19, 2023

Conversation

ElMassimo
Copy link
Owner

Description 📖

This pull request fixes a bug introduced in:

which prevented mixing active_model_serializers in oj_serializers associations, as reported in:

Background 📜

Although JsonStringEncoder was simplified and new_json_writer is no longer necessary, we still need to implement write_to_one and write_to_many, and now one_as_hash and one_as_many in order to mix serializers in associations.

@ElMassimo ElMassimo merged commit 5050710 into main Apr 19, 2023
@ElMassimo ElMassimo deleted the fix/ams-compat branch April 19, 2023 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant