Deprecation changes

This commit is contained in:
2018-01-16 16:56:51 -03:00
parent c9d71a9455
commit 39edc6da7f
2 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
import Ember from 'ember' import Ember from 'ember'
import DS from 'ember-data' import DS from 'ember-data'
import { pluralize } from 'ember-inflector'
import config from 'ember-get-config' import config from 'ember-get-config'
import DataAdapterMixin from 'ember-simple-auth/mixins/data-adapter-mixin' import DataAdapterMixin from 'ember-simple-auth/mixins/data-adapter-mixin'
@@ -25,8 +26,8 @@ export default DS.JSONAPIAdapter.extend DataAdapterMixin,
pathForType: (modelName) -> pathForType: (modelName) ->
base = Ember.String.underscore(modelName) base = Ember.String.underscore(modelName)
base = base.replace(/\./g, '/') base = base.replace(/\./g, '/')
#base.split(/\//).map( (str) -> Ember.String.pluralize(str) ).join('/') # all parts pluralized #base.split(/\//).map( (str) -> pluralize(str) ).join('/') # all parts pluralized
Ember.String.pluralize(base) pluralize(base)
updateRecord: (store, type, snapshot) -> updateRecord: (store, type, snapshot) ->
data = {} data = {}
+4 -4
View File
@@ -19,10 +19,10 @@
"coffee": "coffee --bare --compile --watch addon" "coffee": "coffee --bare --compile --watch addon"
}, },
"dependencies": { "dependencies": {
"ember-cli-babel": "^5.1.7", "ember-cli-babel": "^6.6.0",
"ember-cli-emblem": "^0.8.2-beta.2", "ember-cli-emblem": "^0.9.0",
"ember-cli-htmlbars": "^1.1.1", "ember-cli-htmlbars": "^2.0.1",
"ember-cli-sass": ">=6.1.2" "ember-cli-sass": ">=7.0.0"
}, },
"devDependencies": { "devDependencies": {
"broccoli-asset-rev": "^2.4.5", "broccoli-asset-rev": "^2.4.5",