     findQuery: (store, type, query) ->
         throw "I DIDN'T IMPLEMENT THIS SHIT"
 
-    createRecord: (store, type, record) -> new Promise (resolve) ->
+    createRecord: (store, type, record) -> new Promise (resolve) =>
         key = guid()
         value = serialize record, store.serializerFor type.typeKey
 
         localStorage.setItem key, value
+        @saveModelId key, type.typeKey
         resolve()
 
     updateRecord: (store, type, record) -> new Promise (resolve) ->

`import Save from '../models/save'`

utf8_to_b64 = (str) ->
    btoa encodeURIComponent escape str


    deleteRecord: (store, type, record) ->
        throw "I DIDN'T IMPLEMENT THIS SHIT"

    saveModelId: (id, modelType) ->
        ids = JSON.parse localStorage.getItem modelType
        ids ?= []
        ids.pushObject id
        localStorage.setItem modelType, JSON.stringify ids

`export default ApplicationAdapter`
