mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-29 18:45:48 -05:00
12 lines
371 B
CoffeeScript
12 lines
371 B
CoffeeScript
|
CocoCollection = require 'models/CocoCollection'
|
||
|
LevelSession = require 'models/LevelSession'
|
||
|
|
||
|
module.exports = class LeaderboardCollection extends CocoCollection
|
||
|
url: ''
|
||
|
model: LevelSession
|
||
|
|
||
|
constructor: (level, options) ->
|
||
|
super()
|
||
|
options ?= {}
|
||
|
@url = "/db/level/#{level.get('original')}.#{level.get('version').major}/leaderboard?#{$.param(options)}"
|