This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
copyToNoneLocal: task(function* (draft, ignoreModel = null, level = 0) { | |
try { | |
let draftType = draft.modelName; | |
let modelType = draftType.replace('-local', ''); | |
let model = this.store.createRecord(modelType); | |
let mixedProperties = []; | |
let relationships = []; | |
let properties = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const DEFAULT_BUCKET_NAME = "general"; | |
const DEFAULT_TYPE = "local"; | |
/* | |
* Storage class should be used as follow: | |
* | |
* @param string "session" || "local" //default local | |
* @param string Bucket Name, where following objects will be stored, it's like a namespace. | |
* | |
* const storage = Storage("local", "tables"); |
NewerOlder