codecombat/app/collections/Courses.coffee
2016-07-25 11:29:30 -07:00

11 lines
300 B
CoffeeScript

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)