Skip to content

Commit

Permalink
Extend adapter instead of reopening it
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenCocoon committed Jun 1, 2015
1 parent 92704a0 commit 90619b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/ember-data/lib/adapters/rest-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ import BuildURLMixin from "ember-data/adapters/build-url-mixin";
property on the adapter:
```js
DS.RESTAdapter.reopen({
App.ApplicationAdapter = DS.RESTAdapter.extend({
namespace: 'api/1'
});
```
Expand All @@ -110,7 +110,7 @@ import BuildURLMixin from "ember-data/adapters/build-url-mixin";
An adapter can target other hosts by setting the `host` property.
```js
DS.RESTAdapter.reopen({
App.ApplicationAdapter = DS.RESTAdapter.extend({
host: 'https://api.example.com'
});
```
Expand Down Expand Up @@ -281,7 +281,7 @@ export default Adapter.extend(BuildURLMixin, {
property on the adapter:
```javascript
DS.RESTAdapter.reopen({
App.ApplicationAdapter = DS.RESTAdapter.extend({
namespace: 'api/1'
});
```
Expand All @@ -296,7 +296,7 @@ export default Adapter.extend(BuildURLMixin, {
An adapter can target other hosts by setting the `host` property.
```javascript
DS.RESTAdapter.reopen({
App.ApplicationAdapter = DS.RESTAdapter.extend({
host: 'https://api.example.com'
});
```
Expand Down

0 comments on commit 90619b8

Please sign in to comment.