From 507dcc73765476d01a5bc9c224cdb71df9c174d9 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 2 Sep 2015 12:50:10 +0200 Subject: [PATCH] [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. --- app/components/add-ssh-key.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/add-ssh-key.coffee b/app/components/add-ssh-key.coffee index 38bada68..fc926589 100644 --- a/app/components/add-ssh-key.coffee +++ b/app/components/add-ssh-key.coffee @@ -15,8 +15,8 @@ AddSshKeyComponent = Ember.Component.extend # once https://github.com/emberjs/data/pull/2867 # and https://github.com/emberjs/data/pull/2870 are merged if model - @get('store').dematerializeRecord(model) - typeMap = @get('store').typeMapFor('sshKey') + @get('store').dematerializeRecord(model._internalModel) + typeMap = @get('store').typeMapFor(model.constructor) idToRecord = typeMap.idToRecord delete idToRecord[id]