15 lines
444 B
CoffeeScript
15 lines
444 B
CoffeeScript
`import Ember from 'ember'`
|
|
`import ApplicationAdapter from 'travis/adapters/application'`
|
|
|
|
Adapter = ApplicationAdapter.extend
|
|
namespace: 'settings'
|
|
|
|
createRecord: (store, type, record) ->
|
|
data = {};
|
|
serializer = store.serializerFor(type.typeKey);
|
|
serializer.serializeIntoHash(data, type, record, { includeId: true });
|
|
|
|
this.ajax(this.buildURL(type.typeKey, null, record), "POST", { data: data })
|
|
|
|
`export default Adapter`
|