mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 19:06:59 -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}"
|