-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX release] Disable polymorphic deserialization when a model exp…
…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.
- Loading branch information
Showing
2 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters