codecombat/app/collections/DocumentFiles.coffee

8 lines
No EOL
268 B
CoffeeScript

CocoCollection = require 'collections/CocoCollection'
module.exports = class ModelFiles extends CocoCollection
constructor: (model) ->
super()
url = model.constructor.prototype.urlRoot
url += "/#{model.get('original') or model.id}/files"
@url = url