[specs] Properly use internal ember-data methods

We need to use a few internal methods until we switch to ED 2.0, this
commit fixes their usage.
This commit is contained in:
Piotr Sarnacki 2015-09-02 12:50:10 +02:00
parent c7f412f636
commit 507dcc7376

View File

@ -15,8 +15,8 @@ AddSshKeyComponent = Ember.Component.extend
# once https://github.com/emberjs/data/pull/2867 # once https://github.com/emberjs/data/pull/2867
# and https://github.com/emberjs/data/pull/2870 are merged # and https://github.com/emberjs/data/pull/2870 are merged
if model if model
@get('store').dematerializeRecord(model) @get('store').dematerializeRecord(model._internalModel)
typeMap = @get('store').typeMapFor('sshKey') typeMap = @get('store').typeMapFor(model.constructor)
idToRecord = typeMap.idToRecord idToRecord = typeMap.idToRecord
delete idToRecord[id] delete idToRecord[id]