Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

Typo in Example Code - Customizing Serializers - EmbeddedRecordMixin #2467

Closed
brianhjelle opened this issue Feb 18, 2016 · 1 comment
Closed

Comments

@brianhjelle
Copy link

The code example for app/serializers/post.js should be authors not author.

Occurrence #1
export default DS.JSONSerializer.extend(DS.EmbeddedRecordsMixin, {
attrs: {
author: {
serialize: 'records',
deserialize: 'records'
}
}
});

Occurrence #2
export default DS.JSONSerializer.extend(DS.EmbeddedRecordsMixin, {
attrs: {
author: { embedded: 'always' }
}
});

@locks
Copy link
Contributor

locks commented Feb 18, 2016

Hi @bhje, since this is an issue with the guides the proper repository to file the bug is emberjs/guides.
I went ahead and fixed it so you don't need to open it there :)
Thanks for reporting!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants