MCPcopy Index your code
hub / github.com/codecombat/codecombat / backupKey

Method backupKey

app/models/CocoModel.js:64–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 created () { return new Date(parseInt(this.id.substring(0, 8), 16) * 1000) }
63
64 backupKey () {
65 if (this.usesVersions) { return this.id } else { return this.id } // + ':' + @attributes.__v # TODO: doesn't work because __v doesn't actually increment. #2061
66 }
67 // if fixed, RevertModal will also need the fix
68
69 setProjection (project) {

Callers 3

loadFromBackupMethod · 0.95
saveBackupNowMethod · 0.95
clearBackupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected