mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
9 lines
351 B
CoffeeScript
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}"
|