codecombat/app/collections/PatchesCollection.coffee
2014-04-11 14:19:17 -07:00

10 lines
353 B
CoffeeScript

PatchModel = require 'models/Patch'
CocoCollection = require 'models/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}"