-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Overriding association methods #848
Comments
What version are you on? |
@joshsmith latest master: the test code I've pasted above is from here https://github.com/rails-api/active_model_serializers/blob/master/test/adapter/json_api/collection_test.rb |
Thanks! |
@mateomurphy yes. Likely in |
Here: #850 |
Found another bug in the same method #852 |
@mateomurphy 👍 keep up the good work! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While going through the tests, I noticed a behaviour that seems wrong to me, but I want to validate before submitting a fix:
We have a serializer:
And the following test setup (edited for clarity)
And that gives the following output
Now, with the overridden association, I would expect it to always return blog: "999", but it only does so if Post has a value for blog. Is this a bug?
The text was updated successfully, but these errors were encountered: