mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Removing unneeded file
This commit is contained in:
parent
bb88b3664f
commit
ae728534ea
1 changed files with 0 additions and 25 deletions
|
@ -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;
|
|
Loading…
Add table
Reference in a new issue