mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
10 lines
353 B
CoffeeScript
10 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}"
|
|
|