MCPcopy Create free account
hub / github.com/codecombat/codecombat / initClass

Method initClass

app/models/Level.js:36–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34module.exports = (Level = (function () {
35 Level = class Level extends CocoModel {
36 static initClass () {
37 this.className = 'Level'
38 this.schema = require('schemas/models/level')
39 this.levels = LevelConstants.levels
40 this.prototype.urlRoot = '/db/level'
41 this.prototype.editableByArtisans = true
42
43 this.prototype.cachedLevelComponents = null
44 }
45
46 serialize (options) {
47 let cached, otherSession, session, supermodel;

Callers 1

Level.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected