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

Port pr #3725 to the release 2.0 branch #3788

Merged
merged 1 commit into from
Sep 21, 2015
Merged

Conversation

bmac
Copy link
Member

@bmac bmac commented Sep 18, 2015

…ects a type attribute

b7f7b7a introduced a bug where if there is a type key in a payload that is part
of an array, it would be used for polymorphic deserialization even when the
model expects an attribute that is named "type".

Interestingly, for such payloads, `arrayHash` passed into `normalizeArray()` in
rest-serializer.js contains Ember.Object instances as opposed to plain objects.
This causes the code to throw, since `hash.type` would be a computed property
in that case. This is probably because of extending from JSONAPISerializer.
bmac added a commit that referenced this pull request Sep 21, 2015
Port pr #3725 to the release 2.0 branch
@bmac bmac merged commit 7345278 into emberjs:master Sep 21, 2015
@bmac bmac deleted the port-3725 branch September 21, 2015 15:12
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