Skip to content

Commit e1387b1

Browse files
committed
Add ember-data adapter before using a Model to not trigger a deprecation
1 parent df6a4d0 commit e1387b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/markdown/tutorial/part-2/11-ember-data.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ During this refactor, you will learn about:
1515
* The Ember Data store
1616
* Working with adapters and serializers
1717

18+
```run:file:create hidden=true cwd=super-rentals filename=app/adapters/application.js
19+
export { default } from '@ember-data/adapter/json-api';
20+
```
21+
1822
## What is Ember Data?
1923

2024
Now that we've added some features, it's time to do some clean up again!
@@ -82,6 +86,7 @@ Attributes declared with the `@attr` decorator work with the auto-track feature
8286
```run:command hidden=true cwd=super-rentals
8387
ember test --path dist
8488
git add app/models/rental.js
89+
git add app/adapters/application.js
8590
```
8691

8792
## Testing Models

0 commit comments

Comments
 (0)