-
-
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-1-13] Disable polymorphic deserialization when a mode…
…l expects 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
Alan
committed
Sep 3, 2015
1 parent
a476f3f
commit 4f4e4b8
Showing
2 changed files
with
37 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