From ae728534ea6aadcab16d4c111e71e801b0d677a8 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Sat, 21 Jun 2014 18:45:01 +0100 Subject: [PATCH] Removing unneeded file --- core/client/models/base.js | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 core/client/models/base.js diff --git a/core/client/models/base.js b/core/client/models/base.js deleted file mode 100644 index 64c594ebc4..0000000000 --- a/core/client/models/base.js +++ /dev/null @@ -1,25 +0,0 @@ -import ghostPaths from 'ghost/utils/ghost-paths'; - -var BaseModel = Ember.Object.extend({ - - fetch: function () { - return ic.ajax.request(this.url, { - type: 'GET' - }); - }, - - save: function () { - return ic.ajax.request(this.url, { - type: 'PUT', - dataType: 'json', - // @TODO: This is passing _oldWillDestory and _willDestroy and should not. - data: JSON.stringify(this.getProperties(Ember.keys(this))) - }); - } -}); - -BaseModel.apiRoot = ghostPaths().apiRoot; -BaseModel.subdir = ghostPaths().subdir; -BaseModel.adminRoot = ghostPaths().adminRoot; - -export default BaseModel; \ No newline at end of file