codecombat/app/collections/EarnedAchievementCollection.coffee

10 lines
295 B
CoffeeScript
Raw Normal View History

2014-07-06 23:38:57 +02:00
CocoCollection = require 'collections/CocoCollection'
2014-07-07 12:44:44 +02:00
EarnedAchievement = require 'models/EarnedAchievement'
2014-07-06 23:38:57 +02:00
module.exports = class EarnedAchievementCollection extends CocoCollection
2014-07-07 12:44:44 +02:00
model: EarnedAchievement
2014-07-06 23:38:57 +02:00
initialize: (userID) ->
@url = "/db/user/#{userID}/achievements"
super()