mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-01 03:16:56 -05:00
15 lines
490 B
CoffeeScript
15 lines
490 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 ?= {}
|
|
method = if application.isIPadApp then 'GET' else 'POST' # Not sure why this was required that one time.
|
|
_.extend options, {type: method, data: {ids: @ids}}
|
|
super(options)
|