mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-18 01:11:46 -05:00
11 lines
353 B
CoffeeScript
11 lines
353 B
CoffeeScript
|
PatchModel = require 'models/Patch'
|
||
|
CocoCollection = require 'models/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}"
|
||
|
|