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'
49
49
50
50
``` javascript
51
51
// app/adapters/application.js
52
+ import Ember from ' ember' ;
52
53
import DS from ' ember-data' ;
53
54
import ENV from " ../config/environment" ;
55
+ const { underscore , pluralize } = Ember .String ;
54
56
55
57
export default DS .JSONAPIAdapter .extend ({
56
58
namespace: ' api' ,
@@ -61,8 +63,8 @@ export default DS.JSONAPIAdapter.extend({
61
63
62
64
// allows the multiword paths in urls to be underscored
63
65
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);
66
68
},
67
69
68
70
// allows queries to be sent along with a findRecord
You can’t perform that action at this time.
0 commit comments