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

Method saveNewMajorVersion

app/models/CocoModel.js:586–593  ·  view source on GitHub ↗
(attrs, options)

Source from the content-addressed store, hash-verified

584 }
585
586 saveNewMajorVersion (attrs, options) {
587 if (options == null) { options = {} }
588 attrs = attrs || _.omit(this.attributes, 'version')
589 options.url = this.url() + '/new-version'
590 options.type = 'POST'
591 options.patch = true // do not let version get sent along
592 return this.save(attrs, options)
593 }
594
595 fetchPatchesWithStatus (status, options) {
596 if (status == null) { status = 'pending' }

Callers

nothing calls this directly

Calls 1

saveMethod · 0.95

Tested by

no test coverage detected