codecombat/app/collections/ThangNamesCollection.coffee

15 lines
377 B
CoffeeScript
Raw Normal View History

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()
2014-06-30 22:16:26 -04:00
fetch: (options) ->
options ?= {}
_.extend options, {type:'POST', data:{ids:@ids}}
super(options)