     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) ->

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

`export default ApplicationAdapter`

    object

guid = (->
    s4 = -> Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1)
    s8 = -> s4() + s4()
    s12 = -> s8() + s4()

    -> s8() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s12()
)()

Promise = Ember.RSVP.Promise
