Skip to content

Use the correct modelClass and serializer to extract a polymorphic ty… - #3577

Merged
bmac merged 1 commit into
warp-drive-data:masterfrom
bmac:bug-3547
Aug 20, 2015
Merged

Use the correct modelClass and serializer to extract a polymorphic ty…#3577
bmac merged 1 commit into
warp-drive-data:masterfrom
bmac:bug-3547

Conversation

@bmac

@bmac bmac commented Jul 23, 2015

Copy link
Copy Markdown
Contributor

…pe when normalizing async relationships.

Closes #3547

@bmac

bmac commented Jul 23, 2015

Copy link
Copy Markdown
Contributor Author

@marcemira I believe this fixes #3547.

@igorT and @wecc can you review?

@wecc

wecc commented Jul 23, 2015

Copy link
Copy Markdown
Contributor

LGTM but we should implement the same thing here or it will only work for singular object root keys.

Maybe a private helper method wrapping this would be nice?

@marcemira

Copy link
Copy Markdown

👍 great! Thank you guys 😁

@jrhe

jrhe commented Aug 19, 2015

Copy link
Copy Markdown

I can confirm that this fixes #3547 but only for singular keys. Needs the fix @wecc mentioned.

@bmac

bmac commented Aug 20, 2015

Copy link
Copy Markdown
Contributor Author

@wecc, I have updated this pr. Do you mind reviewing it again?

@wecc

wecc commented Aug 20, 2015

Copy link
Copy Markdown
Contributor

I would like to DRY this up a bit and move the duplicate code to a helper but we can definitely do that later.

:shipit:

bmac added a commit that referenced this pull request Aug 20, 2015
Use the correct modelClass and serializer to extract a polymorphic ty…
@bmac
bmac merged commit 0ad506c into warp-drive-data:master Aug 20, 2015
@bmac
bmac deleted the bug-3547 branch August 20, 2015 19:36
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.

4 participants