codecombat/app/models/Patch.coffee

8 lines
237 B
CoffeeScript
Raw Normal View History

CocoModel = require('./CocoModel')
module.exports = class PatchModel extends CocoModel
@className: "Patch"
urlRoot: "/db/patch"
setStatus: (status) ->
$.ajax("/db/patch/#{@id}/status", {type:"PUT", data: {status:status}})