From b2b892238bff1d6e20799579624367fc52ea4104 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 9 Dec 2015 11:58:10 +0100 Subject: [PATCH] Fix adding ssh key --- app/adapters/ssh-key.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/adapters/ssh-key.coffee b/app/adapters/ssh-key.coffee index f4bad312..1c052a97 100644 --- a/app/adapters/ssh-key.coffee +++ b/app/adapters/ssh-key.coffee @@ -19,6 +19,7 @@ Adapter = ApplicationAdapter.extend id = Ember.get(record, 'id') - this.ajax(this.urlPrefix() + '/ssh_key/' + id, "PATCH", { data: data }) + this.ajax(this.urlPrefix() + '/ssh_key/' + id, "PATCH", { data: data }).then (data) -> + data.ssh_key `export default Adapter`