   updateRecord: (store, type, record) ->
     json = this.serialize(record, {associations: true, includeId: true })
     delete json.history
-    @_update_attachmnets(record, json)
+    @_updateAttachmnets(record, json)
     this.ajax(record.get('id'), 'PUT', {
       data: json,
       context: this,

#= require ember-couchdb-attachment-adapter
#= require ember-couchdb-revs-adapter

DS.CouchDBSerializer = DS.JSONSerializer.extend
  typeAttribute: 'ember_type'
  addEmptyHasMany: false

        store.didSaveRecord(record)
    })

  _updateAttachmnets: (record, json) ->
    if window.AttachmentStore
      _attachments = {}
      record.get('attachments').forEach (item) ->
