@GELight wrote:
Hi there,
Feels very good to work with ember again.
I have to migrate a v2.13 application to Ember v3.4. I generated a new app based on 3.4 and no I try to add all artifacts step by step.
I have 2 Questions so far:
- Where or in which package is the old pluralize() method placed?
- Where I have to place my adapter classes now?
This is my old adapter:
import Ember from 'ember'; import DS from 'ember-data'; export default DS.RESTAdapter.extend({ urlForFindAll(modelName/*, snapshot*/) { let baseUrl = this.buildURL(); return baseUrl + '/rest/' + Ember.String.pluralize(modelName) + '.json'; }, urlForFindRecord(id, modelName/*, snapshot*/) { let baseUrl = this.buildURL(); return baseUrl + '/rest/' + Ember.String.pluralize(modelName) + '/' + id + '.json'; } });
Best regards, Mario
Posts: 5
Participants: 2