codecombat/app/collections/DocumentFiles.coffee

12 lines
312 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-06-30 22:16:26 -04:00
2014-01-03 13:32:13 -05:00
constructor: (model) ->
super()
url = model.constructor.prototype.urlRoot
url += "/#{model.get('original') or model.id}/files"
2014-06-30 22:16:26 -04:00
@url = url