codecombat/app/collections/DocumentFiles.coffee

11 lines
314 B
CoffeeScript
Raw Normal View History

CocoCollection = require 'collections/CocoCollection'
File = require 'models/File'
2014-01-03 13:32:13 -05:00
module.exports = class ModelFiles extends CocoCollection
model: File
2014-01-03 13:32:13 -05:00
constructor: (model) ->
super()
url = model.constructor.prototype.urlRoot
url += "/#{model.get('original') or model.id}/files"
@url = url