codecombat/app/collections/PatchesCollection.coffee

10 lines
351 B
CoffeeScript
Raw Normal View History

2014-04-11 17:19:17 -04:00
PatchModel = require 'models/Patch'
CocoCollection = require 'collections/CocoCollection'
2014-04-11 17:19:17 -04:00
module.exports = class PatchesCollection extends CocoCollection
model: PatchModel
2014-06-30 22:16:26 -04:00
2014-04-11 17:19:17 -04:00
initialize: (models, options, forModel, @status='pending') ->
super(arguments...)
@url = "#{forModel.urlRoot}/#{forModel.get('original')}/patches?status=#{@status}"