Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend adapter instead of reopening it #3139

Merged
merged 1 commit into from
Jun 1, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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