codecombat/app/collections/Patches.coffee
Scott Erickson 09a9358b9e Modify courses i18n edit view to be less error-prone
* Do not use 'backup' system
* Warn when about to lose changes
* Show list of patches and their statuses
2016-08-23 14:36:45 -07:00

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)