Skip to content

Commit

Permalink
Merge pull request #6707 from emberjs/lambda-beta/7279589
Browse files Browse the repository at this point in the history
Keeping beta up to date
  • Loading branch information
igorT committed Nov 8, 2019
2 parents 4c6422a + 1283ee3 commit a399fbe
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
14 changes: 12 additions & 2 deletions packages/adapter/addon/rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,18 @@ const RESTAdapter = Adapter.extend(BuildURLMixin, {

_defaultContentType: 'application/json; charset=utf-8',

fastboot: computed(function() {
return getOwner(this).lookup('service:fastboot');
fastboot: computed({
// Avoid computed property override deprecation in fastboot as suggested by:
// https://deprecations.emberjs.com/v3.x/#toc_computed-property-override
get() {
if (this._fastboot) {
return this._fastboot;
}
return getOwner(this).lookup('service:fastboot');
},
set(key, value) {
this._fastboot = value;
},
}),

useFetch: computed(function() {
Expand Down
11 changes: 0 additions & 11 deletions packages/unpublished-fastboot-test-app/tsconfig.json

This file was deleted.

4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
"@ember-data/record-data/*": ["packages/record-data/addon/*"],
"@ember-data/canary-features": ["packages/canary-features/addon"],
"@ember-data/canary-features/*": ["packages/canary-features/addon/*"],
"*": ["packages/store/types/*", "packages/record-data/types/*"]
"fastboot-test-app/tests/*": ["tests/*"],
"fastboot-test-app/*": ["app/*"],
"*": ["packages/store/types/*", "packages/record-data/types/*", "packages/fastboot-test-app/types/*"]
}
},
"include": [
Expand Down

0 comments on commit a399fbe

Please sign in to comment.