-
-
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 beta] serializePolymorphicType uses keyForPolymorphicType
Currently `keyForAttribute` is used to get the key under which the type of a polymorphic record is serialized. This is not correct, as the new `keyForPolymorphicType` hook should be used. This commit uses the new hook and falls back to the previous vesion, if the key generated via the old method (keyForAttribute) is different to the new version and the `keyForPolymorphicType` has not been overwritten. A deprecation warning is logged if this is the case.
- Loading branch information
Showing
2 changed files
with
62 additions
and
3 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