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

Warn when the JSONAPISerializer is extended with the EmbeddedRecordsM… #4259

Merged
merged 1 commit into from
Mar 24, 2016

Conversation

bmac
Copy link
Member

@bmac bmac commented Mar 22, 2016

…ixin

@@ -500,6 +500,11 @@ const JSONAPISerializer = JSONSerializer.extend({

runInDebug(function() {
JSONAPISerializer.reopen({
willMergeMixin(props) {
warn('The JSONAPISerializer does not work with the EmbeddedRecordsMixin because the JSON API spec does not describe how to format embedded resources.', !props .isEmbeddedRecordsMixin, {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a superfluous whitespace in !props .isEmbeddedRecordsMixin...

@pangratz
Copy link
Member

LGTM 👍

@bmac bmac force-pushed the warn-with-embedded-mixin branch 2 times, most recently from 14ce322 to ad4a208 Compare March 23, 2016 13:33
@bmac bmac force-pushed the warn-with-embedded-mixin branch from ad4a208 to 41b0ad0 Compare March 23, 2016 16:14
@bmac bmac merged commit 8109b4c into emberjs:master Mar 24, 2016
@bmac bmac deleted the warn-with-embedded-mixin branch March 24, 2016 15:05
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.

2 participants