codecombat/app/collections/LeaderboardCollection.coffee

12 lines
376 B
CoffeeScript
Raw Normal View History

CocoCollection = require 'collections/CocoCollection'
2014-02-17 20:42:41 -05:00
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)}"