mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
11 lines
No EOL
314 B
CoffeeScript
11 lines
No EOL
314 B
CoffeeScript
CocoCollection = require 'collections/CocoCollection'
|
|
File = require 'models/File'
|
|
|
|
module.exports = class ModelFiles extends CocoCollection
|
|
model: File
|
|
|
|
constructor: (model) ->
|
|
super()
|
|
url = model.constructor.prototype.urlRoot
|
|
url += "/#{model.get('original') or model.id}/files"
|
|
@url = url |