codecombat/app/collections/LeaderboardCollection.coffee
2014-02-17 17:42:41 -08:00

11 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)}"