codecombat/app/collections/PatchesCollection.coffee

11 lines
358 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
initialize: (models, options, forModel, @status='pending') ->
super(arguments...)
@url = "#{forModel.urlRoot}/#{forModel.get('original')}/patches?status=#{@status}"