mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
11 lines
376 B
CoffeeScript
11 lines
376 B
CoffeeScript
CocoCollection = require 'collections/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)}"
|