codecombat/app/collections/DocumentFiles.coffee

8 lines
263 B
CoffeeScript
Raw Normal View History

2014-01-03 13:32:13 -05:00
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