mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -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...)
|