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

Method initClass

app/models/EarnedAchievement.js:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12module.exports = (EarnedAchievement = (function () {
13 EarnedAchievement = class EarnedAchievement extends CocoModel {
14 static initClass () {
15 this.className = 'EarnedAchievement'
16 this.schema = require('schemas/models/earned_achievement')
17 this.prototype.urlRoot = '/db/earned_achievement'
18 }
19
20 save () {
21 if (this.get('earnedRewards') === null) { this.unset('earnedRewards') }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected