mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-04 21:01:06 -05:00
09a9358b9e
* Do not use 'backup' system * Warn when about to lose changes * Show list of patches and their statuses
11 lines
347 B
CoffeeScript
11 lines
347 B
CoffeeScript
PatchModel = require 'models/Patch'
|
|
CocoCollection = require 'collections/CocoCollection'
|
|
|
|
module.exports = class Patches extends CocoCollection
|
|
model: PatchModel
|
|
|
|
fetchMineFor: (targetModel, options={}) ->
|
|
options.url = "#{_.result(targetModel, 'url')}/patches"
|
|
options.data ?= {}
|
|
options.data.creator = me.id
|
|
@fetch(options)
|