import ApplicationAdapter from './application';

export default ApplicationAdapter.extend({
  createRecord() {
    return this.updateRecord(...arguments);
  },

  updateRecord(store, type, snapshot) {
    const data = {};
    const serializer = store.serializerFor(type.modelName);
    const id = snapshot.id;
    const url = this.buildURL(type.modelName, id, snapshot, 'updateRecord');

    serializer.serializeIntoHash(data, type, snapshot);
    return this.ajax(url, 'PUT', { data });
  }
});

@@ -154,16 +154,76 @@
 ;%0A  %7D,%0A%0A
+  // Use PUT, the API for thread subs is create-or-replace.%0A
   update

Add PUT comment to thread-subscriptions adapter