MCPcopy Create free account
hub / github.com/codecombat/codecombat / hasBeenUsedByTeacher

Method hasBeenUsedByTeacher

app/models/Prepaid.js:140–145  ·  view source on GitHub ↗
(userID)

Source from the content-addressed store, hash-verified

138 }
139
140 hasBeenUsedByTeacher (userID) {
141 if ((this.get('creator') === userID) && _.detect(this.get('redeemers'), { teacherID: undefined })) {
142 return true
143 }
144 return _.detect(this.get('redeemers'), { teacherID: userID })
145 }
146 }
147 Prepaid.initClass()
148 return Prepaid

Callers 1

gotPrepaidsMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected