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

Typo in Example Code - Customizing Serializers - EmbeddedRecordMixin #2467

@brianhjelle

Description

@brianhjelle

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' }
}
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions