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

How to use EmbeddedRecordsMixin with EmberData 2.3.0? #4123

Closed
nhemanth007 opened this issue Jan 28, 2016 · 2 comments
Closed

How to use EmbeddedRecordsMixin with EmberData 2.3.0? #4123

nhemanth007 opened this issue Jan 28, 2016 · 2 comments

Comments

@nhemanth007
Copy link

http://emberjs.com/blog/2016/01/12/ember-data-2-3-released.html

As mentioned in the above blog post, serializer EmbeddedRecordsMixin is not part of public API.

@pangratz
Copy link
Member

Unfortunately this is missing, but it is addressed in #4125.

Until this is available in the next release, you can use DS.EmbeddedRecordsMixin:

// app/serializers/application.js

import DS from "ember-data";
import RESTSerializer from "ember-data/serializers/rest";

export default RESTSerializer.extend(DS.EmbeddedRecordsMixin, {
  // ...
});

@pangratz
Copy link
Member

Since #4125 has been merged, you can now import the EmbeddedRecordsMixin via modules:

import RESTSerializer from "ember-data/serializers/rest";
import EmbeddedRecords from "ember-data/serializers/embedded-records-mixin";

export default RESTSerializer.exend(EmbeddedRecordsMixin, {
  // ...
});

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

No branches or pull requests

2 participants