Skip to content

Commit

Permalink
[DOC adapter] convert classic functions to native class
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwondercorn authored and igorT committed Sep 9, 2020
1 parent 4e8b287 commit 2c6d537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/adapter/addon/-private/build-url-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { pluralize } from 'ember-inflector';
import Adapter, { BuildURLMixin } from '@ember-data/adapter';
export default class ApplicationAdapter extends Adapter.extend(BuildURLMixin) {
findRecord: function(store, type, id, snapshot) {
findRecord(store, type, id, snapshot) {
var url = this.buildURL(type.modelName, id, snapshot, 'findRecord');
return this.ajax(url, 'GET');
}
Expand Down Expand Up @@ -439,7 +439,7 @@ export default Mixin.create({
import { pluralize } from 'ember-inflector';
export default class ApplicationAdapter extends RESTAdapter {
pathForType: function(modelName) {
pathForType(modelName) {
var decamelized = decamelize(modelName);
return pluralize(decamelized);
}
Expand Down

0 comments on commit 2c6d537

Please sign in to comment.