codecombat/app/collections/Courses.coffee

12 lines
300 B
CoffeeScript
Raw Normal View History

2016-03-30 16:57:19 -04:00
Course = require 'models/Course'
CocoCollection = require 'collections/CocoCollection'
module.exports = class Courses extends CocoCollection
model: Course
url: '/db/course'
fetchReleased: (options = {}) ->
options.data ?= {}
options.data.releasePhase = 'released'
@fetch(options)