mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-14 01:31:15 -05:00
13 lines
415 B
CoffeeScript
13 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)
|