codecombat/app/collections/DocumentFiles.coffee
Ting-Kuan 7ae3bd5a60 Fix style and supermodel based on #815.
Fix ladder_view and ladder_tab.
Change error handling functions in CocoView.
2014-04-12 16:29:49 -04: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