Skip to content

Commit 6547fd3

Browse files
committed
fix syntax errors in code examples for ember-data
1 parent 4a21da1 commit 6547fd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

guides/release/models/handling-metadata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ After reading it, `meta.total` can be used to calculate how many pages of posts
6666
To use the `meta` data outside of the `model` hook, you need to return it:
6767

6868
```javascript {data-filename=app/routes/users.js}
69-
import Router from '@ember/routing/route';
69+
import Route from '@ember/routing/route';
7070

7171
export default Route.extend({
7272
model() {

guides/release/models/pushing-records-into-the-store.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ serializer before pushing it into the store, you can use the
8383
```javascript {data-filename=app/serializers/album.js}
8484
import DS from 'ember-data';
8585

86-
export default DS.RestSerializer.extend({
86+
export default DS.RESTSerializer.extend({
8787
normalize(typeHash, hash) {
8888
hash['songCount'] = hash['song_count']
8989
delete hash['song_count']

0 commit comments

Comments
 (0)