codecombat/app/collections/PatchesCollection.coffee
2014-07-01 12:23:22 +08:00

9 lines
351 B
CoffeeScript

PatchModel = require 'models/Patch'
CocoCollection = require 'collections/CocoCollection'
module.exports = class PatchesCollection extends CocoCollection
model: PatchModel
initialize: (models, options, forModel, @status='pending') ->
super(arguments...)
@url = "#{forModel.urlRoot}/#{forModel.get('original')}/patches?status=#{@status}"