mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
12 lines
302 B
CoffeeScript
12 lines
302 B
CoffeeScript
|
Campaign = require 'models/Campaign'
|
||
|
CocoCollection = require 'collections/CocoCollection'
|
||
|
|
||
|
module.exports = class Campaigns extends CocoCollection
|
||
|
model: Campaign
|
||
|
url: '/db/campaign'
|
||
|
|
||
|
fetchByType: (type, options={}) ->
|
||
|
options.data ?= {}
|
||
|
options.data.type = type
|
||
|
@fetch(options)
|
||
|
|