mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-05 13:21:10 -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...)
|