mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-12 00:31:21 -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}"
|