Skip to content

Commit

Permalink
[DOC serializeHasMany ] Update ember-data imports
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufsagdic authored and runspired committed Mar 4, 2019
1 parent 6f5332a commit d13e784
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addon/serializers/embedded-records-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export default Mixin.create({
Use a custom (type) serializer for the post model to configure embedded comments
```app/serializers/post.js
import DS from 'ember-data;
import DS from 'ember-data';
export default DS.RESTSerializer.extend(DS.EmbeddedRecordsMixin, {
attrs: {
Expand Down Expand Up @@ -300,7 +300,7 @@ export default Mixin.create({
To embed the `ids` for a related object (using a hasMany relationship):
```app/serializers/post.js
import DS from 'ember-data;
import DS from 'ember-data';
export default DS.RESTSerializer.extend(DS.EmbeddedRecordsMixin, {
attrs: {
Expand Down Expand Up @@ -348,7 +348,7 @@ export default Mixin.create({
```
```app/serializers/user.js
import DS from 'ember-data;
import DS from 'ember-data';
export default DS.RESTSerializer.extend(DS.EmbeddedRecordsMixin, {
attrs: {
Expand Down

0 comments on commit d13e784

Please sign in to comment.