mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
12 lines
343 B
CoffeeScript
12 lines
343 B
CoffeeScript
CocoModel = require('./CocoModel')
|
|
|
|
module.exports = class PatchModel extends CocoModel
|
|
@className: "Patch"
|
|
@schema: require 'schemas/models/patch'
|
|
urlRoot: "/db/patch"
|
|
|
|
setStatus: (status) ->
|
|
PatchModel.setStatus @id, status
|
|
|
|
@setStatus: (id, status) ->
|
|
$.ajax("/db/patch/#{id}/status", {type:"PUT", data: {status:status}})
|