mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 15:48:11 -05:00
14 lines
377 B
CoffeeScript
14 lines
377 B
CoffeeScript
ThangType = require 'models/ThangType'
|
|
CocoCollection = require 'collections/CocoCollection'
|
|
|
|
module.exports = class ThangNamesCollection extends CocoCollection
|
|
url: '/db/thang.type/names'
|
|
model: ThangType
|
|
isCachable: false
|
|
|
|
constructor: (@ids) -> super()
|
|
|
|
fetch: (options) ->
|
|
options ?= {}
|
|
_.extend options, {type:'POST', data:{ids:@ids}}
|
|
super(options)
|