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

Method initClass

app/models/Product.js:16–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14module.exports = (ProductModel = (function () {
15 ProductModel = class ProductModel extends CocoModel {
16 static initClass () {
17 this.className = 'Product'
18 this.schema = require('schemas/models/product.schema')
19 this.prototype.urlRoot = '/db/products'
20 }
21
22 isRegionalSubscription (name) { return utils.isRegionalSubscription(name != null ? name : this.get('name')) }
23

Callers 1

Product.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected