File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,10 @@ require 'active_model_serializers/register_jsonapi_renderer'
4949
5050``` javascript
5151// app/adapters/application.js
52+ import Ember from ' ember' ;
5253import DS from ' ember-data' ;
5354import ENV from " ../config/environment" ;
55+ const { underscore , pluralize } = Ember .String ;
5456
5557export default DS .JSONAPIAdapter .extend ({
5658 namespace: ' api' ,
@@ -61,8 +63,8 @@ export default DS.JSONAPIAdapter.extend({
6163
6264 // allows the multiword paths in urls to be underscored
6365 pathForType : function (type ) {
64- let underscored = Ember . String . underscore (type);
65- return Ember . String . pluralize (underscored);
66+ let underscored = underscore (type);
67+ return pluralize (underscored);
6668 },
6769
6870 // allows queries to be sent along with a findRecord
You can’t perform that action at this time.
0 commit comments