mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-13 17:21:19 -05:00
12 lines
415 B
CoffeeScript
12 lines
415 B
CoffeeScript
CocoCollection = require 'collections/CocoCollection'
|
|
LevelSession = require 'models/LevelSession'
|
|
|
|
module.exports = class LevelSessionCollection extends CocoCollection
|
|
url: '/db/level.session'
|
|
model: LevelSession
|
|
|
|
fetchForCourseInstance: (courseInstanceID, options) ->
|
|
options = _.extend({
|
|
url: "/db/course_instance/#{courseInstanceID}/my-course-level-sessions"
|
|
}, options)
|
|
@fetch(options)
|