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

AMS ERROR AFTER CHANGING ADAPTER #2391

Open
mohitagarwal18 opened this issue Aug 31, 2020 · 1 comment
Open

AMS ERROR AFTER CHANGING ADAPTER #2391

mohitagarwal18 opened this issue Aug 31, 2020 · 1 comment

Comments

@mohitagarwal18
Copy link

mohitagarwal18 commented Aug 31, 2020

when i change ActiveModelSerializers.config.adapter to json_api from :attributes it gives error undefined method `read_attribute_for_serialization' for #ActiveModel::Serializer::CollectionSerializer
works fine if ActiveModelSerializers.config.adapter is set to attributes

tried adding serializer and each_serializer
using 10.10 version

@bf4
Copy link
Member

bf4 commented Sep 16, 2020

You'll need to provide a stack trace to have a hope debugging this.

Given that the adapter config is a first-class thing, it's likely the issue is somewhere in your usage of it. So, we need to know more about your usage.

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

No branches or pull requests

2 participants