codecombat/app/collections/DocumentFiles.coffee
2014-01-03 10:32:13 -08:00

8 lines
No EOL
263 B
CoffeeScript

CocoCollection = require 'models/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