mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
11 lines
350 B
CoffeeScript
11 lines
350 B
CoffeeScript
CocoModel = require './CocoModel'
|
|
utils = require '../core/utils'
|
|
|
|
module.exports = class EarnedAchievement extends CocoModel
|
|
@className: 'EarnedAchievement'
|
|
@schema: require 'schemas/models/earned_achievement'
|
|
urlRoot: '/db/earned_achievement'
|
|
|
|
save: ->
|
|
@unset('earnedRewards') if @get('earnedRewards') is null
|
|
super(arguments...)
|